Last active
December 5, 2019 16:09
-
-
Save sam-higton/2a0701a9dfb5951310af3bbb6aa0b7cf to your computer and use it in GitHub Desktop.
Docker Compose for simple zabbix setup. I don't know much about docker or zabbix, so proceed with caution.
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: '2' | |
services: | |
zabbix_db: | |
image: mysql/mysql-server:latest | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
ports: | |
- 3306:3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: supersecure | |
MYSQL_DATABASE: zabbix | |
MYSQL_USER: zabbix | |
MYSQL_PASSWORD: supersecure | |
zabbix_server: | |
image: zabbix/zabbix-server-mysql:latest | |
depends_on: | |
- zabbix_db | |
ports: | |
- 10051:10051 | |
environment: | |
- DB_SERVER_HOST=zabbix_db | |
- DB_SERVER_PORT=3306 | |
- MYSQL_USER=zabbix | |
- MYSQL_PASSWORD=supersecure | |
zabbix_web: | |
image: zabbix/zabbix-web-apache-mysql:latest | |
depends_on: | |
- zabbix_db | |
- zabbix_server | |
ports: | |
- 80:80 | |
environment: | |
- DB_SERVER_HOST=zabbix_db | |
- DB_SERVER_PORT=3306 | |
- MYSQL_USER=zabbix | |
- MYSQL_PASSWORD=supersecure | |
- ZBX_SERVER_HOST=zabbix_server | |
- PHP_TZ="Europe/Isle_of_Man" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment