Initial commit

This commit is contained in:
2026-02-25 12:58:12 +01:00
commit 6bc4ea5e45

65
docker-compose.yml Normal file
View File

@@ -0,0 +1,65 @@
services:
mysql:
image: mysql:8.0-oracle
container_name: mysql
networks:
- zabbix-net
environment:
MYSQL_DATABASE: zabbix
MYSQL_USER: zabbix
MYSQL_PASSWORD: /etc/zabbix-passwd/secrets/mysql-password
MYSQL_ROOT_PASSWORD: /etc/zabbix-passwd/secrets/mysql-root-password
volumes:
- ./mysql_data:/var/lib/mysql
command:
- --character-set-server=utf8
- --collation-server=utf8_bin
- --default-authentication-plugin=mysql_native_password
zabbix-java-gateway:
image: zabbix/zabbix-java-gateway:alpine-7.4-latest
container_name: zabbix-java-gateway
networks:
- zabbix-net
restart: unless-stopped
zabbix-server:
image: zabbix/zabbix-server-mysql
container-name: zabbix-server
networks:
- zabbix-net
restart: unless-stopped
environnment:
DB_SERVER_HOST: mysql
MYSQL_DATABASE: zabbix
MYSQL_USER: zabbix
MYSQL_PASSWORD: /etc/zabbix-passwd/secrets/mysql-password
MYSQL_ROOT_PASSWORD: /etc/zabbix-passwd/secrets/mysql-root-password
ZBX_JAVAGATEWAY: zabbix-java-gateway
ports:
- 10051:10051
zabbix-web-nginx:
image: zabbix/zabbix-web-nginx-mysql:alpine-7.4-latest
container_name: zabbix-web-nginx
restart: unless-stopped
newtorks:
- zabbix-net
environment:
ZBX_SERVER_HOST: zabbix-server
DB_SERVER_HOST: mysql
MYSQL_DATABSE: zabbix
MYSQL_USER: zabbix
MYSQL_PASSWORD: /etc/zabbix-passwd/secrets/mysql-password
MYSQL_ROOT_PASSWORD: /etc/zabbix-passwd/secrets/mysql-root-password
ports:
- 80:8080
networks:
zabbix-net:
ipam:
driver: default
config:
- subnet: "192.168.1.0/24"