Last active
June 14, 2019 00:40
-
-
Save Goggot/a90f6cc3574c18c3605233a97c9849c6 to your computer and use it in GitHub Desktop.
Zabbix Server Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
zabbix-database: | |
container_name: zabbix-database | |
image: postgres:11.2-alpine | |
restart: always | |
environment: | |
POSTGRES_DB: zabbix | |
POSTGRES_USER: zabbix | |
POSTGRES_PASSWORD: password | |
PGDATA: /opt/zabbix-server | |
logging: | |
driver: journald | |
volumes: | |
- /opt/zabbix-server:/opt/zabbix-server | |
networks: | |
- zabbix | |
zabbix-server: | |
container_name: zabbix-server | |
image: zabbix/zabbix-server-pgsql:alpine-4.2-latest | |
restart: always | |
depends_on: | |
- zabbix-database | |
environment: | |
DB_SERVER_HOST: zabbix-database | |
POSTGRES_USER: zabbix | |
POSTGRES_PASSWORD: password | |
logging: | |
driver: journald | |
networks: | |
- zabbix | |
links: | |
- "zabbix-agent" | |
zabbix-agent: | |
container_name: zabbix-agent | |
image: zabbix/zabbix-agent:alpine-4.2-latest | |
restart: always | |
environment: | |
ZBX_SERVER_HOST: "zabbix-server" | |
logging: | |
driver: journald | |
networks: | |
- zabbix | |
zabbix-web: | |
container_name: zabbix-web | |
image: zabbix/zabbix-web-nginx-pgsql:alpine-4.2-latest | |
restart: always | |
depends_on: | |
- zabbix-database | |
- zabbix-server | |
environment: | |
DB_SERVER_HOST: zabbix-database | |
POSTGRES_USER: zabbix | |
POSTGRES_PASSWORD: password | |
ZABBIX_HOSTNAME: zabbix-server | |
logging: | |
driver: journald | |
ports: | |
- 80:80 | |
networks: | |
- zabbix | |
networks: | |
zabbix: | |
name: zabbix | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment