fix: remove hardcoded secrets from docker-compose.yml

This commit is contained in:
Chen Gu
2026-05-10 16:21:54 +08:00
parent 696e519fa3
commit 611c414b2d
2 changed files with 7 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ services:
container_name: maqt-postgres
environment:
POSTGRES_USER: maqt
POSTGRES_PASSWORD: maqt123456
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-maqt123456}
POSTGRES_DB: maqt
volumes:
- pgdata:/var/lib/postgresql/data
@@ -25,9 +25,9 @@ services:
ports:
- "127.0.0.1:3002:3001"
environment:
- DATABASE_URL=postgresql://maqt:maqt123456@postgres:5432/maqt
- JWT_SECRET=maqt-jwt-secret-key-2026-change-in-production
- ENCRYPTION_KEY=maqt-encryption-key-32bytes!
- DATABASE_URL=postgresql://maqt:${POSTGRES_PASSWORD:-maqt123456}@postgres:5432/maqt
- JWT_SECRET=${JWT_SECRET}
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- PORT=3001
restart: unless-stopped
depends_on: