services: postgres: image: postgres:16-alpine container_name: facewatch-postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: facewatch ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: [ "CMD-SHELL", "pg_isready -U postgres -d facewatch" ] interval: 10s timeout: 5s retries: 5 restart: unless-stopped backend: build: context: ./backend container_name: facewatch-backend env_file: - ./backend/.env.docker ports: - "8000:8000" depends_on: postgres: condition: service_healthy restart: unless-stopped frontend: build: context: ./frontend args: VITE_WS_URL: ws://localhost:8000/ws/video container_name: facewatch-frontend ports: - "5173:80" depends_on: - backend restart: unless-stopped volumes: postgres_data: