version: '3.8' services: postgres: image: postgres:16-alpine container_name: flowmatch_postgres environment: POSTGRES_DB: flowmatch POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 10s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: flowmatch_redis ports: - "6379:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 backend: build: context: ./backend dockerfile: Dockerfile container_name: flowmatch_backend environment: - DATABASE_URL=postgresql+asyncpg://postgres:postgres@postgres:5432/flowmatch - REDIS_URL=redis://redis:6379/0 - SECRET_KEY=your-secret-key-change-in-production - DEBUG=true - AWS_REGION=eu-central-1 ports: - "8000:8000" depends_on: postgres: condition: service_healthy redis: condition: service_healthy volumes: - ./backend:/app - ./uploads:/app/uploads frontend: build: context: ./frontend dockerfile: Dockerfile container_name: flowmatch_frontend ports: - "3000:3000" depends_on: - backend volumes: - ./frontend:/app - /app/node_modules volumes: postgres_data: redis_data: