Update docker-compose.prod.yml voor directe Gitea build
This commit is contained in:
@@ -1,26 +1,28 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
# Productie configuratie voor Dockge deployment
|
# Productie configuratie voor Dockge deployment
|
||||||
# Kopieer deze inhoud naar Dockge bij het aanmaken van de stack
|
# Kopieer deze YAML naar Dockge bij het aanmaken van een nieuwe stack
|
||||||
|
# De container wordt automatisch gebouwd vanuit de Gitea repository
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
questionnaire:
|
||||||
build: .
|
build:
|
||||||
|
context: http://10.0.10.205:3000/bert.hausmans/questionnaire.git#main
|
||||||
|
dockerfile: Dockerfile
|
||||||
container_name: questionnaire
|
container_name: questionnaire
|
||||||
ports:
|
ports:
|
||||||
- "4000:4000"
|
- "4000:4000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- PORT=4000
|
- PORT=4000
|
||||||
- SESSION_SECRET=${SESSION_SECRET}
|
# Wijzig deze waarden!
|
||||||
|
- SESSION_SECRET=wijzig-dit-naar-een-veilige-random-string
|
||||||
- DB_PATH=/app/data/questionnaire.db
|
- DB_PATH=/app/data/questionnaire.db
|
||||||
- DEFAULT_ADMIN_USER=${DEFAULT_ADMIN_USER:-admin}
|
- DEFAULT_ADMIN_USER=admin
|
||||||
- DEFAULT_ADMIN_PASS=${DEFAULT_ADMIN_PASS}
|
- DEFAULT_ADMIN_PASS=wijzig-dit-wachtwoord
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/app/data
|
- questionnaire-data:/app/data
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
|
||||||
- proxy
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4000/api/auth/status"]
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4000/api/auth/status"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
@@ -28,7 +30,6 @@ services:
|
|||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 40s
|
||||||
|
|
||||||
networks:
|
volumes:
|
||||||
proxy:
|
questionnaire-data:
|
||||||
external: true
|
driver: local
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user