Skip to content

Instantly share code, notes, and snippets.

@phpdude
Last active Mar 12, 2016
Embed
What would you like to do?
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