services: db: image: postgres:16-alpine restart: unless-stopped environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: agent_bench ports: - "5432:5432" volumes: - db_data:/var/lib/postgresql/data - ./migrations:/docker-entrypoint-initdb.d healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 10 backend: build: context: ./backend restart: unless-stopped env_file: - .env environment: DATABASE_URL: postgresql+psycopg://postgres:postgres@db:5432/agent_bench OLLAMA_BASE_URL: http://host.docker.internal:11434 ports: - "8000:8000" depends_on: db: condition: service_healthy extra_hosts: - "host.docker.internal:host-gateway" volumes: db_data: