This commit is contained in:
2025-09-10 11:46:57 -07:00
parent 2cc2b4c9ce
commit f443e7a64e
33 changed files with 887 additions and 1467 deletions

View File

@@ -11,6 +11,11 @@ services:
- ./data/gpx:/app/data/gpx
- ./data/sessions:/app/data/sessions
- ./data/logs:/app/logs
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
environment:
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@db:5432/cycling
- API_KEY=${API_KEY}
@@ -33,12 +38,23 @@ services:
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "3000:3000"
- "80:80"
environment:
- REACT_APP_API_URL=http://localhost:8000
- REACT_APP_API_URL=http://backend:8000
- NODE_ENV=production
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80/healthz"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
backend:
condition: service_healthy
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
db:
image: postgres:15-alpine