29 lines
876 B
YAML
29 lines
876 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
org-todo-pwa:
|
|
container_name: org-todo-pwa
|
|
build: .
|
|
ports:
|
|
- "3044:3044"
|
|
volumes:
|
|
- /srv/swarm/org-todo-pwa/data:/data
|
|
user: "1000:1000"
|
|
environment:
|
|
- DEBUG=app
|
|
- AUTH_USERNAME=fredrik
|
|
- AUTH_PASSWORD=apa
|
|
- SESSION_SECRET=superheimlich # Add your session secret key
|
|
- NODE_ENV=production # Ensure the environment is set to production
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3044"]
|
|
interval: 5m
|
|
timeout: 10s
|
|
retries: 3
|
|
deploy:
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.plan.tls=true"
|
|
- "traefik.http.routers.plan.tls.certresolver=myhttpchallenge"
|
|
- "traefik.http.routers.plan.rule=Host(`todo.casablanca.wahlberg.se`)"
|
|
- "traefik.http.routers.plan.entrypoints=websecure" |