services: backend: build: ./backend restart: unless-stopped volumes: - ./backend/data:/app/data environment: - DATABASE_URL=sqlite+aiosqlite:///./data/roaauto.db - SECRET_KEY=${SECRET_KEY} - SMSAPI_TOKEN=${SMSAPI_TOKEN:-} - CORS_ORIGINS=https://roaauto.romfast.ro healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8000/api/health || exit 1"] interval: 30s timeout: 10s retries: 3 frontend: build: ./frontend restart: unless-stopped ports: - "80:80" depends_on: backend: condition: service_healthy