services: backend: image: ken027/agents-api container_name: agents-api build: context: . dockerfile: Dockerfile ports: - "5000:5000" env_file: - .env depends_on: postgres: condition: service_healthy redis: condition: service_started postgres: image: postgres container_name: agent_db env_file: - .env ports: - "5433:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 30s timeout: 10s retries: 3 restart: unless-stopped redis: image: redis container_name: agent_cache env_file: - .env ports: - "6379:6379" volumes: - redis_data:/data volumes: postgres_data: driver: local redis_data: driver: local