version: '3.9' services: backend: build: context: ./backend dockerfile: Dockerfile ports: - '8000:8000' env_file: - ./backend/.env volumes: - ./backend/firebase-service-account.json:/app/firebase-service-account.json:ro healthcheck: test: ['CMD', 'curl', '-f', 'http://localhost:8000/health'] interval: 30s timeout: 10s retries: 3 restart: unless-stopped frontend: build: context: ./frontend dockerfile: Dockerfile ports: - '4173:4173' env_file: - ./frontend/.env depends_on: backend: condition: service_healthy restart: unless-stopped