version: "3.8" services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: flowbridge POSTGRES_PASSWORD: flowbridge POSTGRES_DB: flowbridge ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U flowbridge"] interval: 5s timeout: 5s retries: 5 backend: build: context: ./backend dockerfile: Dockerfile ports: - "8000:8000" environment: FLOWBRIDGE_DATABASE_URL: postgresql+asyncpg://flowbridge:flowbridge@postgres:5432/flowbridge FLOWBRIDGE_DEBUG: "true" FLOWBRIDGE_SECRET_KEY: change-me-in-production FLOWBRIDGE_LOG_LEVEL: INFO depends_on: postgres: condition: service_healthy volumes: - ./backend:/app command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload frontend: build: context: ./frontend dockerfile: Dockerfile ports: - "3000:3000" depends_on: - backend environment: REACT_APP_API_URL: http://localhost:8000/api volumes: - ./frontend:/app - /app/node_modules volumes: postgres_data: