@@ -3,14 +3,17 @@ services:
33 image : ghcr.io/cncnet/cncnet-ladder-app:${APP_TAG}
44 restart : unless-stopped
55 container_name : cncnet_ladder_app
6- env_file : " .env"
6+ user : " ${HOST_UID:-1000}:${HOST_GID:-1000}"
7+ env_file : " .app.env"
78 environment :
89 XDG_CONFIG_HOME : /app/.config
910 XDG_DATA_HOME : /app/.data
1011 volumes :
1112 - caddy_data:/data
1213 - caddy_config:/config
1314 - ./cncnet-api/storage:/app/storage
15+ ports :
16+ - ' ${APP_PORT:-3000}:8000'
1417 depends_on :
1518 - redis
1619 networks :
@@ -22,7 +25,7 @@ services:
2225 container_name : cncnet_ladder_queue_findmatch
2326 depends_on :
2427 - app
25- env_file : " .env"
28+ env_file : " .app. env"
2629 environment :
2730 QUEUE_NAME : ' findmatch'
2831 networks :
@@ -34,7 +37,7 @@ services:
3437 container_name : cncnet_ladder_queue_saveladderresult
3538 depends_on :
3639 - app
37- env_file : " .env"
40+ env_file : " .app. env"
3841 environment :
3942 QUEUE_NAME : ' saveladderresult'
4043 networks :
@@ -46,7 +49,7 @@ services:
4649 container_name : cncnet_ladder_scheduler
4750 depends_on :
4851 - app
49- env_file : " .env"
52+ env_file : " .app. env"
5053 networks :
5154 - cncnet
5255
@@ -70,8 +73,6 @@ services:
7073 container_name : cncnet_ladder_mysql
7174 restart : unless-stopped
7275 command : --max_connections=1000 --max_allowed_packet=128M --log_warnings=3 --wait_timeout=31536000 --slow-query-log --interactive_timeout=31536000
73- ports :
74- - " 3307:3306"
7576 environment :
7677 MYSQL_DATABASE : ${MYSQL_DATABASE}
7778 MYSQL_USER : ${MYSQL_USER}
@@ -91,7 +92,7 @@ services:
9192 db-backup :
9293 container_name : cncnet_ladder_backup
9394 env_file :
94- - ' .env'
95+ - ' .backup. env'
9596 image : tiredofit/db-backup
9697 volumes :
9798 - ./backups:/backup
0 commit comments