-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 1.19 KB
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 1.19 KB
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
29
30
services:
invoice-machine:
build: .
container_name: invoice-machine
ports:
- "${PORT:-8080}:8080"
volumes:
- ${DATA_DIR:-./data}:/app/data
environment:
# Core settings
- DATABASE_URL=sqlite+aiosqlite:////app/data/invoice_machine.db
- DATA_DIR=/app/data
- APP_BASE_URL=${APP_BASE_URL:-http://localhost:8080}
- ENVIRONMENT=${ENVIRONMENT:-development}
- TRASH_RETENTION_DAYS=${TRASH_RETENTION_DAYS:-90}
# Security settings (INVOICE_MACHINE_ENCRYPTION_KEY required in production)
- INVOICE_MACHINE_ENCRYPTION_KEY=${INVOICE_MACHINE_ENCRYPTION_KEY:-}
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:3000,http://localhost:8080}
- SECURE_COOKIES=${SECURE_COOKIES:-false}
# Invoice defaults
- DEFAULT_PAYMENT_TERMS_DAYS=${DEFAULT_PAYMENT_TERMS_DAYS:-30}
- DEFAULT_CURRENCY_CODE=${DEFAULT_CURRENCY_CODE:-USD}
- DEFAULT_ACCENT_COLOR=${DEFAULT_ACCENT_COLOR:-#16a34a}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/health')"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s