services: postgres: image: docker.1ms.run/library/postgres:16-alpine container_name: aiportpilot-postgres environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: aiportpilot ports: - "5432:5432" volumes: - postgres_data:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine container_name: aiportpilot-redis ports: - "6379:6379" volumes: - redis_data:/data healthcheck: test: ["CMD", "redis-cli", "ping"] interval: 5s timeout: 5s retries: 5 ollama: image: ollama/ollama:latest container_name: aiportpilot-ollama ports: - "11434:11434" volumes: - ollama_data:/root/.ollama healthcheck: test: ["CMD-SHELL", "curl -s http://localhost:11434/api/version || exit 1"] interval: 10s timeout: 5s retries: 3 volumes: postgres_data: redis_data: ollama_data: