mirror of
https://github.com/sstent/AICyclingCoach.git
synced 2026-02-08 15:32:14 +00:00
sync
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user