搜索

PythonReactSEOPDF
GitHub Skill

compose-bringup

Bring up a Docker Compose stack reliably and verify basic service/container status. Use for local smoke tests, live testing, and staging-like bring-up.

jfriisj☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Skill Instructions

Inputs

  • COMPOSE_FILES (string): compose flags, e.g. -f docker-compose.yml or -f docker-compose.yml -f docker-compose.gpu.yml
  • BUILD (string/bool): when set (non-empty), include --build

Procedure

set -euo pipefail

compose_files="${COMPOSE_FILES:-}"
build_flag=""
if [ -n "${BUILD:-}" ]; then
  build_flag="--build"
fi

# Bring up
if [ -n "$compose_files" ]; then
  docker compose $compose_files up -d $build_flag
else
  docker compose up -d $build_flag
fi

# Inspect status
if [ -n "$compose_files" ]; then
  docker compose $compose_files ps
else
  docker compose ps
fi

Acceptance Criteria

  • docker compose ... ps shows expected services are running / healthy (if healthchecks exist)

Notes

  • Use docker-compose.yml alone for CPU-only runs.
  • Add an override file (e.g. docker-compose.gpu.yml) only when you explicitly want GPU.

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!