Skip to content

Instantly share code, notes, and snippets.

@kenjiroe
Created September 1, 2016 08:51
Show Gist options
  • Save kenjiroe/c61c75cdf1872fb23959c9732da8b7f5 to your computer and use it in GitHub Desktop.
Save kenjiroe/c61c75cdf1872fb23959c9732da8b7f5 to your computer and use it in GitHub Desktop.
version: '2'
services:
zabbix-db:
image: zabbix/zabbix-db-mariadb
volumes:
- zabbix-db-storage:/var/lib/mysql
- backups:/backups
- /etc/localtime:/etc/localtime:ro
environment:
- MARIADB_USER=zabbix
- MARIADB_PASS=my_password
zabbix-server:
image: zabbix/zabbix-3.0:latest
depends_on:
- zabbix-db
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
volumes:
zabbix-db-storage:
driver: local
backups:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment