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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user