services: aiprovider: image: ${AI_PROVIDER_IMAGE_NAME:-planet-aiprovider:latest} build: context: . dockerfile: aiprovider/Dockerfile args: PYTHON_IMAGE: ${PYTHON_IMAGE:-python:3.14-slim} UV_IMAGE: ${UV_IMAGE:-ghcr.io/astral-sh/uv:latest} AI_PROVIDER_BUILD_FINGERPRINT: ${AI_PROVIDER_BUILD_FINGERPRINT:-unknown} secrets: - planet_uv_config env_file: - ./aiprovider/.env - ${PLANET_AI_PROVIDER_RUNTIME_ENV_FILE:-./aiprovider/.env} container_name: planet_aiprovider ports: - "8010:8010" healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8010/health"] interval: 10s timeout: 5s retries: 5 postgres: image: postgres:15 container_name: planet_postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: planet_db ports: - "127.0.0.1:${PLANET_POSTGRES_PORT:-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: planet_redis ports: - "127.0.0.1:${PLANET_REDIS_PORT:-6379}:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 10s timeout: 5s retries: 5 admin: profiles: - admin image: ${ADMIN_IMAGE_NAME:-planet-admin:latest} build: context: ./frontend dockerfile: Dockerfile args: BUN_IMAGE: ${BUN_IMAGE:-oven/bun:1-alpine} NGINX_IMAGE: ${NGINX_IMAGE:-nginx:1.27-alpine} PLANET_FRONTEND_TARGET: admin ADMIN_BUILD_FINGERPRINT: ${ADMIN_BUILD_FINGERPRINT:-unknown} container_name: ${ADMIN_CONTAINER_NAME:-planet_admin} environment: PLANET_BACKEND_UPSTREAM: ${PLANET_BACKEND_UPSTREAM:-host.docker.internal:8000} extra_hosts: - "host.docker.internal:host-gateway" ports: - "${PLANET_ADMIN_BIND_HOST:-127.0.0.1}:${PLANET_ADMIN_PORT:-3000}:3000" healthcheck: test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3000/health"] interval: 10s timeout: 5s retries: 5 volumes: postgres_data: redis_data: secrets: planet_uv_config: file: ${PLANET_UV_CONFIG_FILE:-/dev/null}