# AIOps — 单应用 embed 容器(连接外部 MySQL/Redis,无内置数据库) # 用法: VERSION=v1.0.1 docker compose -f docker-compose.k8s.yml up -d --build # 署名 Logan.Li services: aiops: image: ${DOCKERHUB_IMAGE:-lghost/aiops}:${VERSION:-dev} build: context: . dockerfile: Dockerfile.embed args: VERSION: ${VERSION:-dev} BUILD_TIME: ${BUILD_TIME:-unknown} GIT_COMMIT: ${GIT_COMMIT:-unknown} container_name: aiops restart: unless-stopped ports: - "8080:8080" volumes: - ./backend/config.external.yaml:/app/config.yaml - /var/run/docker.sock:/var/run/docker.sock healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/version"] interval: 30s timeout: 10s retries: 3 start_period: 40s