2026-03-19 06:58:08 +08:00
|
|
|
services:
|
|
|
|
|
app:
|
2026-03-24 17:02:03 +08:00
|
|
|
image: mauriceboe/nomad:2.5.5
|
2026-03-19 06:58:08 +08:00
|
|
|
container_name: nomad
|
|
|
|
|
ports:
|
|
|
|
|
- "3000:3000"
|
|
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
2026-03-21 22:09:41 +08:00
|
|
|
- JWT_SECRET=${JWT_SECRET:-}
|
2026-03-19 07:13:23 +08:00
|
|
|
# - ALLOWED_ORIGINS=https://yourdomain.com # Optional: restrict CORS to specific origins
|
2026-03-19 06:58:08 +08:00
|
|
|
- PORT=3000
|
|
|
|
|
volumes:
|
|
|
|
|
- ./data:/app/data
|
|
|
|
|
- ./uploads:/app/uploads
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3000/api/auth/me"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
start_period: 15s
|