zabbix-docker/docker-compose_v3_ol_mysql_latest.yaml

151 lines
3.8 KiB
YAML
Raw Normal View History

2023-12-13 11:42:04 +01:00
version: '3.8'
services:
zabbix-server:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: server-mysql
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_SERVER_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-proxy-sqlite3:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: proxy-sqlite3
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_PROXY_SQLITE3_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-proxy-mysql:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: proxy-mysql
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_PROXY_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-web-apache-mysql:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: web-apache-mysql
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_WEB_APACHE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-web-nginx-mysql:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: web-nginx-mysql
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_WEB_NGINX_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-agent:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: agent
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_AGENT_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-java-gateway:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: java-gateway
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_JAVA_GATEWAY_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-snmptraps:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: snmptraps
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_SNMPTRAPS_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
mysql-server:
2023-12-14 10:15:17 +01:00
extends:
file: compose_databases.yaml
service: mysql-server
2023-12-14 10:15:17 +01:00
db-data-mysql:
extends:
file: compose_databases.yaml
service: db-data-mysql
# elasticsearch:
2023-12-14 10:15:17 +01:00
# extends:
# file: compose_databases.yaml
# service: elasticsearch
networks:
zbx_net_frontend:
driver: bridge
driver_opts:
2023-12-13 11:42:04 +01:00
com.docker.network.enable_ipv6: "${FRONTEND_ENABLE_IPV6}"
ipam:
2023-12-13 11:42:04 +01:00
driver: "${FRONTEND_NETWORK_DRIVER}"
config:
2023-12-13 11:42:04 +01:00
- subnet: "${FRONTEND_SUBNET}"
zbx_net_backend:
driver: bridge
driver_opts:
2023-12-13 11:42:04 +01:00
com.docker.network.enable_ipv6: "${BACKEND_ENABLE_IPV6}"
internal: true
ipam:
2023-12-13 11:42:04 +01:00
driver: "${BACKEND_NETWORK_DRIVER}"
config:
2023-12-13 11:42:04 +01:00
- subnet: "${BACKEND_SUBNET}"
2023-12-14 10:15:17 +01:00
zbx_net_database:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "${DATABASE_NETWORK_ENABLE_IPV6}"
internal: true
ipam:
driver: "${DATABASE_NETWORK_DRIVER}"
volumes:
snmptraps:
2023-05-02 08:33:33 +02:00
# dbsocket:
secrets:
MYSQL_USER:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.MYSQL_USER
MYSQL_PASSWORD:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.MYSQL_PASSWORD
MYSQL_ROOT_USER:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.MYSQL_ROOT_USER
MYSQL_ROOT_PASSWORD:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.MYSQL_ROOT_PASSWORD
# client-key.pem:
2023-12-13 11:42:04 +01:00
# file: ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE
# client-cert.pem:
2023-12-13 11:42:04 +01:00
# file: ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE
# root-ca.pem:
2023-12-13 11:42:04 +01:00
# file: ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE
# server-cert.pem:
2023-12-13 11:42:04 +01:00
# file: ${ENV_VARS_DIRECTORY}/.DB_CERT_FILE
# server-key.pem:
2023-12-13 11:42:04 +01:00
# file: ${ENV_VARS_DIRECTORY}/.DB_KEY_FILE