2021-06-10 01:06:28 +02:00
|
|
|
services:
|
2021-09-13 03:35:17 +02:00
|
|
|
zabbix-build-base:
|
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/build-base/${OL_OS_TAG_SHORT}
|
2021-09-13 03:35:17 +02:00
|
|
|
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}
|
2024-05-28 10:10:23 +02:00
|
|
|
attach: false
|
2021-09-13 03:35:17 +02:00
|
|
|
|
|
|
|
zabbix-build-pgsql:
|
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/build-pgsql/${OL_OS_TAG_SHORT}
|
2021-09-13 03:35:17 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
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_PGSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2024-05-28 10:10:23 +02:00
|
|
|
attach: false
|
2021-09-13 03:35:17 +02:00
|
|
|
depends_on:
|
|
|
|
- zabbix-build-base
|
|
|
|
|
|
|
|
zabbix-build-mysql:
|
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/build-mysql/${OL_OS_TAG_SHORT}
|
2021-09-13 03:35:17 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
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}
|
2024-05-28 10:10:23 +02:00
|
|
|
attach: false
|
2021-10-16 23:15:15 +02:00
|
|
|
profiles:
|
|
|
|
- all
|
2021-09-13 03:35:17 +02:00
|
|
|
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}
|
2021-09-13 03:35:17 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
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}
|
2024-05-28 10:10:23 +02:00
|
|
|
attach: false
|
2021-10-16 23:15:15 +02:00
|
|
|
profiles:
|
|
|
|
- all
|
2021-09-13 03:35:17 +02:00
|
|
|
depends_on:
|
|
|
|
- zabbix-build-base
|
|
|
|
|
2021-06-10 01:06:28 +02:00
|
|
|
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-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/server-pgsql/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
args:
|
2023-12-13 11:42:04 +01:00
|
|
|
BUILD_BASE_IMAGE: ${BUILD_BASE_PGSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
|
|
|
image: zabbix-server-pgsql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2021-06-10 01:06:28 +02:00
|
|
|
volumes:
|
2023-12-13 11:42:04 +01:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2021-06-10 01:06:28 +02:00
|
|
|
depends_on:
|
|
|
|
- postgres-server
|
2021-09-13 03:35:17 +02:00
|
|
|
- zabbix-build-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
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
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/proxy-sqlite3/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
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}
|
2021-06-10 01:06:28 +02:00
|
|
|
volumes:
|
2023-12-13 11:42:04 +01:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2021-06-10 01:06:28 +02:00
|
|
|
depends_on:
|
2021-09-13 03:35:17 +02:00
|
|
|
- zabbix-build-sqlite3
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
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
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/proxy-mysql/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
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}
|
2021-06-10 01:06:28 +02:00
|
|
|
volumes:
|
2023-12-13 11:42:04 +01:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2021-06-10 01:06:28 +02:00
|
|
|
depends_on:
|
|
|
|
- mysql-server
|
2021-09-13 03:35:17 +02:00
|
|
|
- zabbix-build-mysql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
zabbix-web-apache-pgsql:
|
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-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/web-apache-pgsql/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
args:
|
2023-12-13 11:42:04 +01:00
|
|
|
BUILD_BASE_IMAGE: ${BUILD_BASE_PGSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
|
|
|
image: zabbix-web-apache-pgsql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2021-06-10 01:06:28 +02:00
|
|
|
volumes:
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres-server
|
2021-09-13 03:35:17 +02:00
|
|
|
- zabbix-build-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
zabbix-web-nginx-pgsql:
|
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-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/web-nginx-pgsql/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
args:
|
2023-12-13 11:42:04 +01:00
|
|
|
BUILD_BASE_IMAGE: ${BUILD_BASE_PGSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
|
|
|
image: zabbix-web-nginx-pgsql:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2021-06-10 01:06:28 +02:00
|
|
|
volumes:
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres-server
|
2021-09-13 03:35:17 +02:00
|
|
|
- zabbix-build-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
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
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/agent/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
args:
|
2023-12-14 10:15:17 +01:00
|
|
|
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2023-12-13 11:42:04 +01:00
|
|
|
image: zabbix-agent:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2021-06-10 01:06:28 +02:00
|
|
|
volumes:
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
2021-09-13 03:35:17 +02:00
|
|
|
depends_on:
|
|
|
|
- zabbix-build-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
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
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/java-gateway/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
cache_from:
|
2023-12-13 11:42:04 +01:00
|
|
|
- "${OL_CACHE_FROM}"
|
2021-09-13 03:35:17 +02:00
|
|
|
args:
|
2023-12-14 10:15:17 +01:00
|
|
|
BUILD_BASE_IMAGE: ${BUILD_BASE_MYSQL_IMAGE}:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2023-12-13 11:42:04 +01:00
|
|
|
image: zabbix-java-gateway:${ZABBIX_OL_IMAGE_TAG}${ZABBIX_LOCAL_IMAGE_TAG_POSTFIX}
|
2021-09-13 03:35:17 +02:00
|
|
|
depends_on:
|
|
|
|
- zabbix-build-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
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
|
2021-06-10 01:06:28 +02:00
|
|
|
build:
|
2023-12-13 11:42:04 +01:00
|
|
|
context: ./Dockerfiles/snmptraps/${OL_OS_TAG_SHORT}
|
2021-06-10 01:06:28 +02:00
|
|
|
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-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
labels:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.zabbix.os: "${OL_OS_TAG}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
mysql-server:
|
2024-06-12 04:44:35 +02:00
|
|
|
profiles:
|
|
|
|
- all
|
2023-12-14 10:15:17 +01:00
|
|
|
extends:
|
|
|
|
file: compose_databases.yaml
|
|
|
|
service: mysql-server
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
postgres-server:
|
2023-12-14 10:15:17 +01:00
|
|
|
extends:
|
|
|
|
file: compose_databases.yaml
|
|
|
|
service: postgres-server
|
2021-06-10 01:06:28 +02:00
|
|
|
|
2023-12-14 10:15:17 +01:00
|
|
|
db-data-mysql:
|
2024-06-12 04:44:35 +02:00
|
|
|
profiles:
|
|
|
|
- all
|
2023-12-14 10:15:17 +01:00
|
|
|
extends:
|
|
|
|
file: compose_databases.yaml
|
|
|
|
service: db-data-mysql
|
2021-06-10 01:06:28 +02:00
|
|
|
|
2023-12-14 10:15:17 +01:00
|
|
|
db-data-pgsql:
|
|
|
|
extends:
|
|
|
|
file: compose_databases.yaml
|
|
|
|
service: db-data-pgsql
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
# elasticsearch:
|
2023-12-14 10:15:17 +01:00
|
|
|
# extends:
|
|
|
|
# file: compose_databases.yaml
|
|
|
|
# service: elasticsearch
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
networks:
|
2024-05-28 10:10:23 +02:00
|
|
|
frontend:
|
2021-06-10 01:06:28 +02:00
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.docker.network.enable_ipv6: "${FRONTEND_ENABLE_IPV6}"
|
2021-06-10 01:06:28 +02:00
|
|
|
ipam:
|
2023-12-13 11:42:04 +01:00
|
|
|
driver: "${FRONTEND_NETWORK_DRIVER}"
|
2021-06-10 01:06:28 +02:00
|
|
|
config:
|
2023-12-13 11:42:04 +01:00
|
|
|
- subnet: "${FRONTEND_SUBNET}"
|
2024-05-28 10:10:23 +02:00
|
|
|
backend:
|
2021-06-10 01:06:28 +02:00
|
|
|
driver: bridge
|
|
|
|
driver_opts:
|
2023-12-13 11:42:04 +01:00
|
|
|
com.docker.network.enable_ipv6: "${BACKEND_ENABLE_IPV6}"
|
2021-06-10 01:06:28 +02:00
|
|
|
internal: true
|
|
|
|
ipam:
|
2023-12-13 11:42:04 +01:00
|
|
|
driver: "${BACKEND_NETWORK_DRIVER}"
|
2021-06-10 01:06:28 +02:00
|
|
|
config:
|
2023-12-13 11:42:04 +01:00
|
|
|
- subnet: "${BACKEND_SUBNET}"
|
2024-05-28 10:10:23 +02:00
|
|
|
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}"
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
snmptraps:
|
2023-12-14 10:15:17 +01:00
|
|
|
# dbsocket:
|
2021-06-10 01:06:28 +02:00
|
|
|
|
|
|
|
secrets:
|
|
|
|
MYSQL_USER:
|
2023-12-13 11:42:04 +01:00
|
|
|
file: ${ENV_VARS_DIRECTORY}/.MYSQL_USER
|
2021-06-10 01:06:28 +02:00
|
|
|
MYSQL_PASSWORD:
|
2023-12-13 11:42:04 +01:00
|
|
|
file: ${ENV_VARS_DIRECTORY}/.MYSQL_PASSWORD
|
2022-02-26 20:16:20 +01:00
|
|
|
MYSQL_ROOT_USER:
|
2023-12-13 11:42:04 +01:00
|
|
|
file: ${ENV_VARS_DIRECTORY}/.MYSQL_ROOT_USER
|
2021-06-10 01:06:28 +02:00
|
|
|
MYSQL_ROOT_PASSWORD:
|
2023-12-13 11:42:04 +01:00
|
|
|
file: ${ENV_VARS_DIRECTORY}/.MYSQL_ROOT_PASSWORD
|
2021-06-10 01:06:28 +02:00
|
|
|
POSTGRES_USER:
|
2023-12-13 11:42:04 +01:00
|
|
|
file: ${ENV_VARS_DIRECTORY}/.POSTGRES_USER
|
2021-06-10 01:06:28 +02:00
|
|
|
POSTGRES_PASSWORD:
|
2023-12-13 11:42:04 +01:00
|
|
|
file: ${ENV_VARS_DIRECTORY}/.POSTGRES_PASSWORD
|