skillhub/docker-compose.yml
2026-04-02 10:32:34 +08:00

62 lines
1.6 KiB
YAML

services:
skill-scanner:
build: ./scanner
ports:
- "8000:8000"
environment:
SKILL_SCANNER_LLM_API_KEY: ${SKILL_SCANNER_LLM_API_KEY:-1d4389c1d6fb42849053958dbe916c6c.YfkLCfIXhxJlrA8D}
SKILL_SCANNER_LLM_BASE_URL: ${SKILL_SCANNER_LLM_BASE_URL:-https://open.bigmodel.cn/api/paas/v4}
SKILL_SCANNER_LLM_MODEL: ${SKILL_SCANNER_LLM_MODEL:-glm-4.7}
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:8000/health"]
interval: 10s
timeout: 5s
retries: 5
postgres:
image: ${POSTGRES_IMAGE:-postgres:17-alpine}
ports:
- "5432:5432"
environment:
POSTGRES_DB: skillhub
POSTGRES_USER: skillhub
POSTGRES_PASSWORD: skillhub_dev
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U skillhub"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: ${REDIS_IMAGE:-redis:7.0-alpine}
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
minio:
image: ${MINIO_IMAGE:-minio/minio:RELEASE.2025-09-07T16-13-09Z}
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
volumes:
postgres_data:
minio_data: