zabbix-docker/docker-compose_v3_ol_mysql_local.yaml

283 lines
7.6 KiB
YAML
Raw Permalink Normal View History

services:
zabbix-build-base:
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/build-base/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
image: ${BUILD_BASE_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
attach: false
zabbix-build-mysql:
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/build-mysql/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
attach: false
depends_on:
- zabbix-build-base
zabbix-build-sqlite3:
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/build-sqlite3/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: ${BUILD_BASE_SQLITE3_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
attach: false
2021-10-16 23:15:15 +02:00
profiles:
- all
depends_on:
- zabbix-build-base
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
build:
context: ./Dockerfiles/server-mysql/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-server-mysql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
- zabbix-build-mysql
labels:
com.zabbix.description: "Zabbix server with MySQL database support"
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/proxy-sqlite3/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_SQLITE3_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-proxy-sqlite3:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
depends_on:
- zabbix-build-sqlite3
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/proxy-mysql/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-proxy-mysql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
- zabbix-build-mysql
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/web-apache-mysql/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-web-apache-mysql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
- zabbix-build-mysql
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/web-nginx-mysql/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-web-nginx-mysql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- mysql-server
- zabbix-build-mysql
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/agent/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-agent:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- zabbix-build-mysql
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/java-gateway/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-java-gateway:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
depends_on:
- zabbix-build-mysql
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
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/snmptraps/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
image: zabbix-snmptraps:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
2023-12-14 10:15:17 +01:00
depends_on:
- zabbix-build-mysql
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${OL_OS_TAG}"
zabbix-web-service:
2023-12-14 10:15:17 +01:00
extends:
file: compose_zabbix_components.yaml
2024-02-06 09:16:51 +01:00
service: web-service
build:
2023-12-13 11:42:04 +01:00
context: ./Dockerfiles/web-service/${OL_OS_TAG_SHORT}
cache_from:
2023-12-13 11:42:04 +01:00
- "${OL_CACHE_FROM}"
args:
2023-12-13 11:42:04 +01:00
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
image: zabbix-web-service:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
depends_on:
- zabbix-build-mysql
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:
extends:
file: compose_databases.yaml
service: elasticsearch
selenium:
extends:
file: compose_additional_components.yaml
service: selenium
selenium-chrome:
platform: linux/amd64
extends:
file: compose_additional_components.yaml
service: selenium-chrome
selenium-firefox:
extends:
file: compose_additional_components.yaml
service: selenium-firefox
networks:
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}"
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}"
database:
2023-12-14 10:15:17 +01:00
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "${DATABASE_NETWORK_ENABLE_IPV6}"
internal: true
ipam:
driver: "${DATABASE_NETWORK_DRIVER}"
tools_frontend:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "${ADD_TOOLS_ENABLE_IPV6}"
ipam:
driver: "${ADD_TOOLS_NETWORK_DRIVER}"
config:
- subnet: "${ADD_TOOLS_SUBNET}"
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