Files
gold_land_user/docker-compose.yml
T
safavimohadeseh78andCursor e3f0457dc9
Frontend CI / unit (test, type-check, build) (push) Successful in 1m11s
Frontend CI / browser E2E (frontend + pinned backend) (push) Failing after 2m48s
feat: complete server-backed six-lesson app and trial tooling
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-12 14:40:37 +03:30

63 lines
1.4 KiB
YAML

services:
backend:
build:
context: ../backend-nest
dockerfile: Dockerfile
image: child-gold-land-backend:latest
container_name: child-gold-land-backend
env_file:
- .env.docker
environment:
NODE_ENV: production
PORT: 3000
HOST: 0.0.0.0
DB_PATH: /app/data/app.db
JWT_SECRET: ${JWT_SECRET}
CORS_ORIGIN: ${CORS_ORIGIN}
TRUST_PROXY: "true"
TRUST_PROXY_CIDRS: "10.0.0.0/8,172.16.0.0/12,192.168.0.0/16"
expose:
- "3000"
volumes:
- backend_sqlite:/app/data
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"node",
"-e",
"fetch('http://127.0.0.1:3000/health/ready').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
networks:
- child-gold-land
frontend:
build:
context: .
dockerfile: Dockerfile
args:
VITE_API_URL: ${VITE_API_URL:-/api}
image: child-gold-land-frontend:latest
container_name: child-gold-land-frontend
ports:
- "${FRONTEND_PORT:-8080}:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
networks:
- child-gold-land
volumes:
backend_sqlite:
name: child-gold-land-sqlite
networks:
child-gold-land:
name: child-gold-land