Skip to content

Instantly share code, notes, and snippets.

@sam-higton
Last active December 5, 2019 16:09
Show Gist options
  • Save sam-higton/2a0701a9dfb5951310af3bbb6aa0b7cf to your computer and use it in GitHub Desktop.
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.
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