Skip to content

Commit

Permalink
Fixed circular reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
dotneft committed Feb 6, 2024
1 parent 56e2f10 commit da6314b
Show file tree
Hide file tree
Showing 17 changed files with 168 additions and 168 deletions.
48 changes: 24 additions & 24 deletions compose_zabbix_components.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '3.8'
services:
zabbix-server:
server:
init: true
ports:
- "${ZABBIX_SERVER_PORT}:10051"
Expand Down Expand Up @@ -55,9 +55,9 @@ services:
com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "zabbix-server"

zabbix-server-mysql:
server-mysql:
extends:
service: zabbix-server
service: server
# volumes:
# - dbsocket:/var/run/mysqld/
env_file:
Expand All @@ -76,9 +76,9 @@ services:
com.zabbix.description: "Zabbix server with MySQL database support"
com.zabbix.dbtype: "mysql"

zabbix-server-pgsql:
server-pgsql:
extends:
service: zabbix-server
service: server
# volumes:
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE:/run/secrets/root-ca.pem:ro
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE:/run/secrets/client-cert.pem:ro
Expand All @@ -96,7 +96,7 @@ services:
com.zabbix.description: "Zabbix server with PostgreSQL database support"
com.zabbix.dbtype: "pgsql"

zabbix-proxy:
proxy:
init: true
profiles:
- all
Expand Down Expand Up @@ -141,9 +141,9 @@ services:
com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "zabbix-proxy"

zabbix-proxy-sqlite3:
proxy-sqlite3:
extends:
service: zabbix-proxy
service: proxy
ports:
- "${ZABBIX_PROXY_SQLITE3_PORT}:10051"
env_file:
Expand All @@ -156,9 +156,9 @@ services:
com.zabbix.description: "Zabbix proxy with SQLite3 database support"
com.zabbix.dbtype: "sqlite3"

zabbix-proxy-mysql:
proxy-mysql:
extends:
service: zabbix-proxy
service: proxy
ports:
- "${ZABBIX_PROXY_MYSQL_PORT}:10051"
# volumes:
Expand All @@ -183,7 +183,7 @@ services:
com.zabbix.description: "Zabbix proxy with MySQL database support"
com.zabbix.dbtype: "mysql"

zabbix-web-apache:
web-apache:
profiles:
- all
ports:
Expand Down Expand Up @@ -223,9 +223,9 @@ services:
com.zabbix.component: "zabbix-frontend"
com.zabbix.webserver: "apache2"

zabbix-web-apache-mysql:
web-apache-mysql:
extends:
service: zabbix-web-apache
service: web-apache
# volumes:
# - dbsocket:/var/run/mysqld/
env_file:
Expand All @@ -242,7 +242,7 @@ services:

zabbix-web-apache-pgsql:
extends:
service: zabbix-web-apache
service: web-apache
# volumes:
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE:/run/secrets/root-ca.pem:ro
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE:/run/secrets/client-cert.pem:ro
Expand All @@ -260,7 +260,7 @@ services:
com.zabbix.description: "Zabbix frontend on Apache web-server with PostgreSQL database support"
com.zabbix.dbtype: "pgsql"

zabbix-web-nginx:
web-nginx:
ports:
- "${ZABBIX_WEB_NGINX_HTTP_PORT}:8080"
- "${ZABBIX_WEB_NGINX_HTTPS_PORT}:8443"
Expand Down Expand Up @@ -298,9 +298,9 @@ services:
com.zabbix.component: "zabbix-frontend"
com.zabbix.webserver: "nginx"

zabbix-web-nginx-mysql:
web-nginx-mysql:
extends:
service: zabbix-web-nginx
service: web-nginx
# volumes:
# - dbsocket:/var/run/mysqld/
env_file:
Expand All @@ -319,9 +319,9 @@ services:
com.zabbix.description: "Zabbix frontend on Nginx web-server with MySQL database support"
com.zabbix.dbtype: "mysql"

zabbix-web-nginx-pgsql:
web-nginx-pgsql:
extends:
service: zabbix-web-nginx
service: web-nginx
# volumes:
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE:/run/secrets/root-ca.pem:ro
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE:/run/secrets/client-cert.pem:ro
Expand All @@ -339,7 +339,7 @@ services:
com.zabbix.description: "Zabbix frontend on Nginx web-server with PostgreSQL database support"
com.zabbix.dbtype: "pgsql"

zabbix-agent:
agent:
init: true
profiles:
- full
Expand Down Expand Up @@ -378,7 +378,7 @@ services:
com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "zabbix-agentd"

zabbix-agent2:
agent2:
init: true
profiles:
- full
Expand Down Expand Up @@ -417,7 +417,7 @@ services:
com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "zabbix-agent2"

zabbix-java-gateway:
java-gateway:
profiles:
- full
- all
Expand All @@ -444,7 +444,7 @@ services:
com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "java-gateway"

zabbix-snmptraps:
snmptraps:
# Override snmptrapd command arguments to receive SNMP traps by DNS
# It must be done with ZBX_SNMP_TRAP_USE_DNS=true environment variable
# command: /usr/sbin/snmptrapd -C -c /etc/snmp/snmptrapd.conf -Lo -A
Expand Down Expand Up @@ -478,7 +478,7 @@ services:
com.zabbix.company: "Zabbix LLC"
com.zabbix.component: "snmptraps"

zabbix-web-service:
web-service:
profiles:
- full
- all
Expand Down
18 changes: 9 additions & 9 deletions docker-compose_v3_alpine_mysql_latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
zabbix-server:
extends:
file: compose_zabbix_components.yaml
service: zabbix-server-mysql
service: server-mysql
image: "${ZABBIX_SERVER_MYSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
Expand All @@ -15,7 +15,7 @@ services:
zabbix-proxy-sqlite3:
extends:
file: compose_zabbix_components.yaml
service: zabbix-proxy-sqlite3
service: proxy-sqlite3
image: "${ZABBIX_PROXY_SQLITE3_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
Expand All @@ -25,7 +25,7 @@ services:
zabbix-proxy-mysql:
extends:
file: compose_zabbix_components.yaml
service: zabbix-proxy-mysql
service: proxy-mysql
image: "${ZABBIX_PROXY_MYSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
Expand All @@ -37,7 +37,7 @@ services:
zabbix-web-apache-mysql:
extends:
file: compose_zabbix_components.yaml
service: zabbix-web-apache-mysql
service: web-apache-mysql
image: "${ZABBIX_WEB_APACHE_MYSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
Expand All @@ -49,7 +49,7 @@ services:
zabbix-web-nginx-mysql:
extends:
file: compose_zabbix_components.yaml
service: zabbix-web-nginx-mysql
service: web-nginx-mysql
image: "${ZABBIX_WEB_NGINX_MYSQL_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
Expand All @@ -61,7 +61,7 @@ services:
zabbix-agent:
extends:
file: compose_zabbix_components.yaml
service: zabbix-agent
service: agent
image: "${ZABBIX_AGENT_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
volumes:
- /etc/timezone:/etc/timezone:ro
Expand All @@ -71,23 +71,23 @@ services:
zabbix-java-gateway:
extends:
file: compose_zabbix_components.yaml
service: zabbix-java-gateway
service: java-gateway
image: "${ZABBIX_JAVA_GATEWAY_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
labels:
com.zabbix.os: "${ALPINE_OS_TAG}"

zabbix-snmptraps:
extends:
file: compose_zabbix_components.yaml
service: zabbix-snmptraps
service: snmptraps
image: "${ZABBIX_SNMPTRAPS_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
labels:
com.zabbix.os: "${ALPINE_OS_TAG}"

zabbix-web-service:
extends:
file: compose_zabbix_components.yaml
service: zabbix-web-service
service: web-service
image: "${ZABBIX_WEB_SERVICE_IMAGE}:${ZABBIX_ALPINE_IMAGE_TAG}${ZABBIX_IMAGE_TAG_POSTFIX}"
labels:
com.zabbix.os: "${ALPINE_OS_TAG}"
Expand Down
18 changes: 9 additions & 9 deletions docker-compose_v3_alpine_mysql_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ services:
zabbix-server:
extends:
file: compose_zabbix_components.yaml
service: zabbix-server-mysql
service: server-mysql
build:
context: ./Dockerfiles/server-mysql/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -53,7 +53,7 @@ services:
zabbix-proxy-sqlite3:
extends:
file: compose_zabbix_components.yaml
service: zabbix-proxy-sqlite3
service: proxy-sqlite3
build:
context: ./Dockerfiles/proxy-sqlite3/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -71,7 +71,7 @@ services:
zabbix-proxy-mysql:
extends:
file: compose_zabbix_components.yaml
service: zabbix-proxy-mysql
service: proxy-mysql
build:
context: ./Dockerfiles/proxy-mysql/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -90,7 +90,7 @@ services:
zabbix-web-apache-mysql:
extends:
file: compose_zabbix_components.yaml
service: zabbix-web-apache-mysql
service: web-apache-mysql
build:
context: ./Dockerfiles/web-apache-mysql/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -109,7 +109,7 @@ services:
zabbix-web-nginx-mysql:
extends:
file: compose_zabbix_components.yaml
service: zabbix-web-nginx-mysql
service: web-nginx-mysql
build:
context: ./Dockerfiles/web-nginx-mysql/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -128,7 +128,7 @@ services:
zabbix-agent:
extends:
file: compose_zabbix_components.yaml
service: zabbix-agent
service: agent
build:
context: ./Dockerfiles/agent/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -146,7 +146,7 @@ services:
zabbix-java-gateway:
extends:
file: compose_zabbix_components.yaml
service: zabbix-java-gateway
service: java-gateway
build:
context: ./Dockerfiles/java-gateway/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -162,7 +162,7 @@ services:
zabbix-snmptraps:
extends:
file: compose_zabbix_components.yaml
service: zabbix-snmptraps
service: snmptraps
build:
context: ./Dockerfiles/snmptraps/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand All @@ -176,7 +176,7 @@ services:
zabbix-web-service:
extends:
file: compose_zabbix_components.yaml
service: zabbix-web-service
service: web-service
build:
context: ./Dockerfiles/web-service/${ALPINE_OS_TAG_SHORT}
cache_from:
Expand Down
Loading

0 comments on commit da6314b

Please sign in to comment.