feat(compose): mount web-next-auth-data volume + pass CM_AUTH_SECRET

This commit is contained in:
yiekheng 2026-05-03 08:26:49 +08:00
parent 54c47cf7d2
commit f2facb200f
2 changed files with 8 additions and 0 deletions

View File

@ -70,3 +70,5 @@ services:
volumes:
mysql-data:
name: ${CM_DEPLOY_NAME:-cm}-mysql-data
web-next-auth-data:
name: ${CM_DEPLOY_NAME:-cm}-web-next-auth-data

View File

@ -83,7 +83,9 @@ services:
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: "1"
API_BASE_URL: http://api-server:3000
CM_AUTH_SECRET: ${CM_AUTH_SECRET}
volumes:
- web-next-auth-data:/data/auth
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
networks:
@ -128,3 +130,7 @@ networks:
bot-network:
name: ${CM_DEPLOY_NAME:-cm}-network
driver: bridge
volumes:
web-next-auth-data:
name: ${CM_DEPLOY_NAME:-cm}-web-next-auth-data