37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
version: '3.8'
|
|
|
|
# Productie configuratie voor Dockge deployment
|
|
# Gebruik de image van Gitea Container Registry
|
|
#
|
|
# Configureer de volgende variabelen in Dockge (.env):
|
|
# SESSION_SECRET - Lange random string voor sessie encryptie
|
|
# DEFAULT_ADMIN_USER - Admin gebruikersnaam (default: admin)
|
|
# DEFAULT_ADMIN_PASS - Admin wachtwoord
|
|
|
|
services:
|
|
questionnaire:
|
|
image: 10.0.10.205:3000/bert.hausmans/questionnaire:latest
|
|
container_name: questionnaire
|
|
ports:
|
|
- "4000:4000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=4000
|
|
- SESSION_SECRET=${SESSION_SECRET}
|
|
- DB_PATH=/app/data/questionnaire.db
|
|
- DEFAULT_ADMIN_USER=${DEFAULT_ADMIN_USER:-admin}
|
|
- DEFAULT_ADMIN_PASS=${DEFAULT_ADMIN_PASS}
|
|
volumes:
|
|
- questionnaire-data:/app/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4000/api/auth/status"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
questionnaire-data:
|
|
driver: local
|