-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (27 loc) · 795 Bytes
/
docker-compose.yml
File metadata and controls
28 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
services:
app:
build: .
ports:
- "3000:3000"
volumes:
- app_data:/app/data
environment:
# JWT_SECRET is required — set it in .env or the environment before starting
- JWT_SECRET=${JWT_SECRET}
- DATABASE_URL=/app/data/app.db
- SMTP_HOST=${SMTP_HOST:-}
- SMTP_PORT=${SMTP_PORT:-}
- SMTP_USERNAME=${SMTP_USERNAME:-}
- SMTP_PASSWORD=${SMTP_PASSWORD:-}
- SMTP_FROM=${SMTP_FROM:-noreply@example.com}
- FRONTEND_URL=${FRONTEND_URL:-http://localhost:3000}
- RUST_LOG=${RUST_LOG:-info}
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/api/health || exit 1"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
app_data: