Skip to content

Commit

Permalink
docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jarischaefer committed Apr 1, 2017
1 parent 4c9380c commit c43e497
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '2'

services:
web:
image: jarischaefer/docker-librenms
ports:
- "80:80"
volumes:
- /my/persistent/directory/logs:/opt/librenms/logs \
- /my/persistent/directory/rrd:/opt/librenms/rrd \
environment:
- DB_HOST=db
- DB_NAME=librenms
- DB_USER=librenms
- DB_PASS=secret
- POLLERS=16
- BASE_URL=http://localhost
links:
- mysql:db
mysql:
image: mysql:5.6
command: --sql-mode=""
ports:
- "3306:3306"
volumes:
- /my/persistent/directory/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=secret

0 comments on commit c43e497

Please sign in to comment.