Advertisement
mrbits

Untitled

Apr 3rd, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.72 KB | None | 0 0
  1. version: '2'
  2. services:
  3.   zabbix-db:
  4.     image: zabbix/zabbix-db-mariadb
  5.     volumes:
  6.      - /docker/zabbix/data/mysql:/var/lib/mysql
  7.       - /docker/zabbix/data/backups:/backups
  8.       - /etc/localtime:/etc/localtime:ro
  9.     environment:
  10.      - MARIADB_USER=zabbix
  11.       - MARIADB_PASS=my_password
  12.   zabbix-server:
  13.     image: zabbix/zabbix-3.0:latest
  14.     depends_on:
  15.      - zabbix-db
  16.     ports:
  17.      - "80:80"
  18.       - "10051:10051"
  19.     volumes:
  20.      - /etc/localtime:/etc/localtime:ro
  21.     links:
  22.      - zabbix-db:zabbix.db
  23.     environment:
  24.      - ZS_DBHost=zabbix.db
  25.       - ZS_DBUser=zabbix
  26.       - ZS_DBPassword=my_password
  27. volumes:
  28.   zabbix-db-storage:
  29.     driver: local
  30.   backups:
  31.     driver: local
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement