Skip to content

Instantly share code, notes, and snippets.

@phpdude
Last active March 12, 2016 00:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdude/295a98e2ffb78c089d0e to your computer and use it in GitHub Desktop.
Save phpdude/295a98e2ffb78c089d0e to your computer and use it in GitHub Desktop.
zabbix-db-storage:
image: busybox:latest
volumes:
- /var/lib/mysql
zabbix-db:
restart: always
image: zabbix/zabbix-db-mariadb
volumes:
- /backups:/backups
- /etc/localtime:/etc/localtime:ro
volumes_from:
- zabbix-db-storage
environment:
- MARIADB_USER=zabbix
- MARIADB_PASS=my_password
- DB_innodb_buffer_pool_size=128M
zabbix-server:
restart: always
image: zabbix/zabbix-3.0:latest
ports:
- "80:80"
- "10051:10051"
volumes:
- /etc/localtime:/etc/localtime:ro
links:
- zabbix-db:zabbix.db
environment:
- ZS_DBHost=zabbix.db
- ZS_DBUser=zabbix
- ZS_DBPassword=my_password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment