version: '3.8' services: postgres: image: ankane/pgvector:latest environment: POSTGRES_USER: user POSTGRES_PASSWORD: password POSTGRES_DB: career_app ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data - ./backend/migrations:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U user"] interval: 5s timeout: 5s retries: 5 backend: build: context: . dockerfile: Dockerfile.dev.backend ports: - "8000:8000" volumes: - ./backend:/app/backend - ./uploads:/app/uploads environment: - DATABASE_URL=postgresql://user:password@postgres:5432/career_app - PYTHONUNBUFFERED=1 depends_on: postgres: condition: service_healthy env_file: - .env frontend: build: context: . dockerfile: Dockerfile.dev.frontend ports: - "3000:3000" volumes: - ./frontend:/app - /app/node_modules environment: - NEXT_PUBLIC_API_URL=http://localhost:8000 volumes: postgres_data: