Fixed empty 'volumes'. Not allowed since compose 1.24.0

This commit is contained in:
Alexey Pustovalov 2024-01-18 21:21:41 +09:00
parent ed66996b02
commit 232aec3d1b

View File

@ -58,7 +58,7 @@ services:
zabbix-server-mysql: zabbix-server-mysql:
extends: extends:
service: zabbix-server service: zabbix-server
volumes: # volumes:
# - dbsocket:/var/run/mysqld/ # - dbsocket:/var/run/mysqld/
env_file: env_file:
- ${ENV_VARS_DIRECTORY}/.env_db_mysql - ${ENV_VARS_DIRECTORY}/.env_db_mysql
@ -81,7 +81,7 @@ services:
zabbix-server-pgsql: zabbix-server-pgsql:
extends: extends:
service: zabbix-server service: zabbix-server
volumes: # volumes:
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE:/run/secrets/root-ca.pem:ro # - ${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 # - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE:/run/secrets/client-cert.pem:ro
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE:/run/secrets/client-key.pem:ro # - ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE:/run/secrets/client-key.pem:ro
@ -163,7 +163,7 @@ services:
service: zabbix-proxy service: zabbix-proxy
ports: ports:
- "${ZABBIX_PROXY_MYSQL_PORT}:10051" - "${ZABBIX_PROXY_MYSQL_PORT}:10051"
volumes: # volumes:
# - dbsocket:/var/run/mysqld/ # - dbsocket:/var/run/mysqld/
env_file: env_file:
- ${ENV_VARS_DIRECTORY}/.env_db_mysql_proxy - ${ENV_VARS_DIRECTORY}/.env_db_mysql_proxy
@ -230,7 +230,7 @@ services:
zabbix-web-apache-mysql: zabbix-web-apache-mysql:
extends: extends:
service: zabbix-web-apache service: zabbix-web-apache
volumes: # volumes:
# - dbsocket:/var/run/mysqld/ # - dbsocket:/var/run/mysqld/
env_file: env_file:
- ${ENV_VARS_DIRECTORY}/.env_db_mysql - ${ENV_VARS_DIRECTORY}/.env_db_mysql
@ -247,7 +247,7 @@ services:
zabbix-web-apache-pgsql: zabbix-web-apache-pgsql:
extends: extends:
service: zabbix-web-apache service: zabbix-web-apache
volumes: # volumes:
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE:/run/secrets/root-ca.pem:ro # - ${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 # - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE:/run/secrets/client-cert.pem:ro
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE:/run/secrets/client-key.pem:ro # - ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE:/run/secrets/client-key.pem:ro
@ -305,7 +305,7 @@ services:
zabbix-web-nginx-mysql: zabbix-web-nginx-mysql:
extends: extends:
service: zabbix-web-nginx service: zabbix-web-nginx
volumes: # volumes:
# - dbsocket:/var/run/mysqld/ # - dbsocket:/var/run/mysqld/
env_file: env_file:
- ${ENV_VARS_DIRECTORY}/.env_db_mysql - ${ENV_VARS_DIRECTORY}/.env_db_mysql
@ -326,7 +326,7 @@ services:
zabbix-web-nginx-pgsql: zabbix-web-nginx-pgsql:
extends: extends:
service: zabbix-web-nginx service: zabbix-web-nginx
volumes: # volumes:
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CA_FILE:/run/secrets/root-ca.pem:ro # - ${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 # - ${ENV_VARS_DIRECTORY}/.ZBX_DB_CERT_FILE:/run/secrets/client-cert.pem:ro
# - ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE:/run/secrets/client-key.pem:ro # - ${ENV_VARS_DIRECTORY}/.ZBX_DB_KEY_FILE:/run/secrets/client-key.pem:ro