Update docker-compose.yml and deploy.yml: Modify volume path to use an environment variable for data persistence and update deployment workflow to reference secrets for environment variables, enhancing flexibility and security.

This commit is contained in:
Julien Froidefond
2025-12-11 11:11:44 +01:00
parent 8b1ed1b8b9
commit 9b40210b36
2 changed files with 5 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ services:
- NEXTAUTH_URL=http://localhost:3000
- NEXTAUTH_SECRET=${NEXTAUTH_SECRET:-change-this-secret-in-production}
volumes:
# Persist database
- /Volumes/EXTERNAL_USB/sites/got-gaming/data:/app/data
# Persist database (override DATA_PATH env var to change location)
- ${PRISMA_DATA_PATH:-/Volumes/EXTERNAL_USB/sites/got-gaming/data}:/app/data
- ./prisma/migrations:/app/prisma/migrations
restart: unless-stopped
healthcheck: