Skip to content

Instantly share code, notes, and snippets.

@Saphareas
Created November 17, 2020 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Saphareas/23156f289471fd14264c8c80ae5e5db9 to your computer and use it in GitHub Desktop.
Save Saphareas/23156f289471fd14264c8c80ae5e5db9 to your computer and use it in GitHub Desktop.
Zabbix Docker Compose
version: "3"
services:
zbx_server:
image: zabbix/zabbix-server-mysql:alpine-latest
name:
environment:
- DB_SERVER_HOST="zbx_db"
- MYSQL_USER="zabbix"
- MYSQL_PASSWORD="zabbix1234!"
restart: unless-stopped
depends_on: zbx_db
zbx_web:
image: zabbix/zabbix-web-nginx-mysql:alpine-latest
name:
environment:
- DB_SERVER_HOST="zbx_db"
- MYSQL_USER="zabbix"
- MYSQL_PASSWORD="zabbix1234!"
- ZBX_SERVER_HOST="zbx_server"
- PHP_TZ="Europe/Berlin"
ports:
- 8080:80
- 8443:443
restart: unless-stopped
depends_on:
- zbx_db
- zbx_server
zbx_db:
image: mariadb:latest
name:
environment:
- MYSQL_ROOT_PASSWORD="wert1234"
restart: unless-stopped
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment