2020-05-10 22:20:31 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
zabbix-mariadb:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack-data == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2020-08-28 13:15:36 +00:00
|
|
|
image: mariadb:10@sha256:589c4347e21c2dd4292d8929091faf6d78e80acdcca6cb04aa0a1337f22765f1
|
2020-05-10 22:20:31 +00:00
|
|
|
command: --max-allowed-packet=128MB
|
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
volumes:
|
|
|
|
- zabbix-mariadb:/var/lib/mysql
|
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ${ZABBIX_MYSQL_ROOT_PASSWORD}
|
|
|
|
MYSQL_USER: zabbix
|
|
|
|
MYSQL_DATABASE: zabbix
|
|
|
|
MYSQL_PASSWORD: ${ZABBIX_MYSQL_PASSWORD}
|
|
|
|
zabbix-server:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack-data == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2020-08-28 13:15:36 +00:00
|
|
|
image: zabbix/zabbix-server-mysql@sha256:0c3c165674c6452e0c42795b89d2fced7b79164f37bab52f0a77cedc40e522a2
|
2020-05-10 22:20:31 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
environment:
|
|
|
|
DB_SERVER_HOST: zabbix-mariadb
|
|
|
|
MYSQL_USER: zabbix
|
|
|
|
MYSQL_PASSWORD: ${ZABBIX_MYSQL_PASSWORD}
|
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
ports:
|
|
|
|
- 10050:10050
|
|
|
|
- 10051:10051
|
|
|
|
zabbix-web:
|
|
|
|
deploy:
|
|
|
|
placement:
|
|
|
|
constraints: [node.labels.com.sigyl.git-stack-data == yes]
|
|
|
|
replicas: 1
|
|
|
|
restart_policy:
|
|
|
|
condition: any
|
2020-08-28 13:15:36 +00:00
|
|
|
image: zabbix/zabbix-web-nginx-mysql@sha256:ea93db4550e6dd130d611b17634242fb18f6fc05e8c1109dd308444fc7a8717d
|
2020-05-10 22:20:31 +00:00
|
|
|
networks:
|
|
|
|
- appnet
|
|
|
|
- externalnet
|
|
|
|
environment:
|
|
|
|
DB_SERVER_HOST: zabbix-mariadb
|
|
|
|
MYSQL_USER: zabbix
|
|
|
|
MYSQL_PASSWORD: ${ZABBIX_MYSQL_PASSWORD}
|
|
|
|
ZBX_SERVER_HOST: zabbix-server
|
|
|
|
PHP_TZ: Europe/London
|
|
|
|
volumes:
|
|
|
|
zabbix-mariadb:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
appnet:
|
|
|
|
driver: overlay
|
|
|
|
#external: true
|
|
|
|
externalnet:
|
|
|
|
driver: overlay
|
|
|
|
external: true
|