Initial commit: Activiteiten Inventaris applicatie
This commit is contained in:
34
docker-compose.prod.yml
Normal file
34
docker-compose.prod.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
version: '3.8'
|
||||
|
||||
# Productie configuratie voor Dockge deployment
|
||||
# Kopieer deze inhoud naar Dockge bij het aanmaken van de stack
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
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:
|
||||
- ./data:/app/data
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- proxy
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:4000/api/auth/status"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 40s
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user