zabbix-docker/docker-compose_v3_alpine_pgsql_latest.yaml

166 lines
4.1 KiB
YAML
Raw Permalink Normal View History

2018-02-20 15:22:27 +01:00
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-pgsql
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_SERVER_PGSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
2018-02-20 15:22:27 +01:00
depends_on:
2019-04-18 22:59:15 +02:00
- postgres-server
2018-02-20 15:22:27 +01:00
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_PROXY_SQLITE3_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
2018-02-20 15:22:27 +01:00
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_PROXY_MYSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
volumes:
2023-12-13 11:42:04 +01:00
- /etc/timezone:/etc/timezone:ro
2018-02-20 15:22:27 +01:00
depends_on:
- mysql-server
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_WEB_APACHE_PGSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
- postgres-server
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_WEB_NGINX_PGSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
volumes:
- /etc/timezone:/etc/timezone:ro
depends_on:
2019-04-18 22:59:15 +02:00
- postgres-server
2018-02-20 15:22:27 +01:00
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_AGENT_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
volumes:
- /etc/timezone:/etc/timezone:ro
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_JAVA_GATEWAY_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01: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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_SNMPTRAPS_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2018-02-20 15:22:27 +01:00
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2018-02-20 15:22:27 +01:00
2021-04-27 23:10:15 +02:00
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
2023-12-13 11:42:04 +01:00
image: "${ZABBIX_WEB_SERVICE_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
2021-04-27 23:10:15 +02:00
labels:
2023-12-13 11:42:04 +01:00
com.zabbix.os: "${ALPINE_OS_TAG}"
2021-04-27 23:10:15 +02:00
2018-02-20 15:22:27 +01:00
mysql-server:
profiles:
- all
2023-12-14 10:15:17 +01:00
extends:
file: compose_databases.yaml
service: mysql-server
2018-02-20 15:22:27 +01:00
postgres-server:
2023-12-14 10:15:17 +01:00
extends:
file: compose_databases.yaml
service: postgres-server
2018-02-20 15:22:27 +01:00
2023-12-14 10:15:17 +01:00
db-data-mysql:
profiles:
- all
2023-12-14 10:15:17 +01:00
extends:
file: compose_databases.yaml
service: db-data-mysql
2018-02-20 15:22:27 +01:00
2023-12-14 10:15:17 +01:00
db-data-pgsql:
extends:
file: compose_databases.yaml
service: db-data-pgsql
2018-02-20 15:22:27 +01:00
2018-06-01 11:02:20 +02:00
# elasticsearch:
2023-12-14 10:15:17 +01:00
# extends:
# file: compose_databases.yaml
# service: elasticsearch
2018-06-01 11:02:20 +02:00
2018-02-20 15:22:27 +01:00
networks:
frontend:
2018-02-20 15:22:27 +01:00
driver: bridge
driver_opts:
2023-12-13 11:42:04 +01:00
com.docker.network.enable_ipv6: "${FRONTEND_ENABLE_IPV6}"
2018-02-20 15:22:27 +01:00
ipam:
2023-12-13 11:42:04 +01:00
driver: "${FRONTEND_NETWORK_DRIVER}"
2018-02-20 15:22:27 +01:00
config:
2023-12-13 11:42:04 +01:00
- subnet: "${FRONTEND_SUBNET}"
backend:
2018-02-20 15:22:27 +01:00
driver: bridge
driver_opts:
2023-12-13 11:42:04 +01:00
com.docker.network.enable_ipv6: "${BACKEND_ENABLE_IPV6}"
2018-02-20 15:22:27 +01:00
internal: true
ipam:
2023-12-13 11:42:04 +01:00
driver: "${BACKEND_NETWORK_DRIVER}"
2018-02-20 15:22:27 +01:00
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}"
2019-07-13 23:50:22 +02:00
2020-06-28 20:43:34 +02:00
volumes:
snmptraps:
2023-12-14 10:15:17 +01:00
# dbsocket:
2020-06-28 20:43:34 +02:00
2019-07-13 23:50:22 +02:00
secrets:
MYSQL_USER:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.MYSQL_USER
2019-07-13 23:50:22 +02:00
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
2019-07-13 23:50:22 +02:00
MYSQL_ROOT_PASSWORD:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.MYSQL_ROOT_PASSWORD
2019-07-13 23:50:22 +02:00
POSTGRES_USER:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.POSTGRES_USER
2019-07-13 23:50:22 +02:00
POSTGRES_PASSWORD:
2023-12-13 11:42:04 +01:00
file: ${ENV_VARS_DIRECTORY}/.POSTGRES_PASSWORD