mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
Simplify volume path syntax to fix path duplication
- Replace complex conditional syntax with simple default pattern - Remove 4x variable references that caused /nfs/containers duplication - Use ./volumes/azerothcore/* for local development - Use /nfs/containers/azerothcore/* for Portainer deployment - Remove unused named volumes section
This commit is contained in:
@@ -17,7 +17,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${DOCKER_DB_EXTERNAL_PORT:-64306}:3306"
|
- "${DOCKER_DB_EXTERNAL_PORT:-64306}:3306"
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/mysql}${STORAGE_PATH_CONTAINERS:-ac_mysql_data}:/var/lib/mysql
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/mysql:/var/lib/mysql
|
||||||
command:
|
command:
|
||||||
- --default-authentication-plugin=mysql_native_password
|
- --default-authentication-plugin=mysql_native_password
|
||||||
- --character-set-server=utf8mb4
|
- --character-set-server=utf8mb4
|
||||||
@@ -69,7 +69,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/config}${STORAGE_PATH_CONTAINERS:-ac_config}:/azerothcore/env/dist/etc
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/config:/azerothcore/env/dist/etc
|
||||||
environment:
|
environment:
|
||||||
AC_DATA_DIR: "/azerothcore/data"
|
AC_DATA_DIR: "/azerothcore/data"
|
||||||
AC_LOGS_DIR: "/azerothcore/logs"
|
AC_LOGS_DIR: "/azerothcore/logs"
|
||||||
@@ -126,7 +126,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/config}${STORAGE_PATH_CONTAINERS:-ac_config}:/azerothcore/env/dist/etc
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/config:/azerothcore/env/dist/etc
|
||||||
cap_add:
|
cap_add:
|
||||||
- SYS_NICE
|
- SYS_NICE
|
||||||
healthcheck:
|
healthcheck:
|
||||||
@@ -141,7 +141,7 @@ services:
|
|||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
container_name: ac-client-data
|
container_name: ac-client-data
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS:+${STORAGE_PATH_CONTAINERS}/azerothcore/data}${STORAGE_PATH_CONTAINERS:-ac_data}:/azerothcore/data
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/data:/azerothcore/data
|
||||||
working_dir: /tmp
|
working_dir: /tmp
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -234,10 +234,10 @@ services:
|
|||||||
- "${DOCKER_WORLD_EXTERNAL_PORT:-8215}:8085"
|
- "${DOCKER_WORLD_EXTERNAL_PORT:-8215}:8085"
|
||||||
- "${DOCKER_SOAP_EXTERNAL_PORT:-7778}:7878"
|
- "${DOCKER_SOAP_EXTERNAL_PORT:-7778}:7878"
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS:+${STORAGE_PATH_CONTAINERS}/azerothcore/data}${STORAGE_PATH_CONTAINERS:-ac_data}:/azerothcore/data
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/data:/azerothcore/data
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/config}${STORAGE_PATH_CONTAINERS:-ac_config}:/azerothcore/env/dist/etc
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/config:/azerothcore/env/dist/etc
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/logs}${STORAGE_PATH_CONTAINERS:-ac_logs}:/azerothcore/logs
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/logs:/azerothcore/logs
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/modules}${STORAGE_PATH_CONTAINERS:-ac_modules}:/azerothcore/modules
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/modules:/azerothcore/modules
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
@@ -265,7 +265,7 @@ services:
|
|||||||
image: alpine/git:latest
|
image: alpine/git:latest
|
||||||
container_name: ac-modules
|
container_name: ac-modules
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/modules}${STORAGE_PATH_CONTAINERS:-ac_modules}:/modules
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/modules:/modules
|
||||||
environment:
|
environment:
|
||||||
- MODULE_PLAYERBOTS=${MODULE_PLAYERBOTS:-1}
|
- MODULE_PLAYERBOTS=${MODULE_PLAYERBOTS:-1}
|
||||||
- MODULE_AOE_LOOT=${MODULE_AOE_LOOT:-0}
|
- MODULE_AOE_LOOT=${MODULE_AOE_LOOT:-0}
|
||||||
@@ -405,7 +405,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${INFLUXDB_EXTERNAL_PORT:-8087}:8086"
|
- "${INFLUXDB_EXTERNAL_PORT:-8087}:8086"
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/influxdb}${STORAGE_PATH_CONTAINERS:-ac_influxdb_data}:/var/lib/influxdb2
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/influxdb:/var/lib/influxdb2
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
@@ -432,8 +432,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${GF_EXTERNAL_PORT:-3001}:3000"
|
- "${GF_EXTERNAL_PORT:-3001}:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/grafana}${STORAGE_PATH_CONTAINERS:-ac_grafana_data}:/var/lib/grafana
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/grafana:/var/lib/grafana
|
||||||
- ${STORAGE_PATH_CONTAINERS}${STORAGE_PATH_CONTAINERS:+/azerothcore/grafana-config}${STORAGE_PATH_CONTAINERS:-ac_grafana_config}:/etc/grafana
|
- ${STORAGE_PATH_CONTAINERS:-./volumes}/azerothcore/grafana-config:/etc/grafana
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
@@ -482,25 +482,6 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- azerothcore
|
- azerothcore
|
||||||
|
|
||||||
volumes:
|
|
||||||
ac_mysql_data:
|
|
||||||
driver: local
|
|
||||||
ac_config:
|
|
||||||
driver: local
|
|
||||||
ac_logs:
|
|
||||||
driver: local
|
|
||||||
ac_modules:
|
|
||||||
driver: local
|
|
||||||
ac_data:
|
|
||||||
driver: local
|
|
||||||
ac_influxdb_data:
|
|
||||||
driver: local
|
|
||||||
ac_grafana_data:
|
|
||||||
driver: local
|
|
||||||
ac_grafana_config:
|
|
||||||
driver: local
|
|
||||||
ac_keira3_data:
|
|
||||||
driver: local
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
azerothcore:
|
azerothcore:
|
||||||
|
|||||||
Reference in New Issue
Block a user