DEMO_MODE=true enables: auto-seeded admin + demo user, 3 example trips (Tokyo, Barcelona, Wien), hourly reset of demo user data, one-click demo login, visible banner with feature info. Zero behavior change when DEMO_MODE is not set.
25 lines
671 B
YAML
25 lines
671 B
YAML
services:
|
|
app:
|
|
image: mauriceboe/nomad:latest
|
|
container_name: nomad-demo
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- PORT=3000
|
|
- DEMO_MODE=true
|
|
- DEMO_ADMIN_USER=admin
|
|
- DEMO_ADMIN_EMAIL=admin@nomad.app
|
|
- DEMO_ADMIN_PASS=${DEMO_ADMIN_PASS:-admin12345}
|
|
- JWT_SECRET=${JWT_SECRET:-demo-secret-change-me-in-production}
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./uploads:/app/uploads
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/auth/app-config"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 15s
|