Files
scaffold/template/docker-compose.yml.jinja
baozaotumao 39fe248f9f feat: 重组为标准 skill 包结构 + 修复 verify.sh bash 3.2 兼容
- 新增 .claude/skills/new-project/SKILL.md(标准 skill 格式)
- install-skill.sh 安装时组装 SKILL.md + verify.sh,单一源无重复
- verify.sh 改用索引数组替代 declare -A,兼容 macOS bash 3.2
- log_pass/log_skip 显式 return 0,避免 set -e 下非 verbose 误退出
- README 改为 skill 优先;补全 copier.yml/scripts/template 入库
2026-06-01 21:19:45 -07:00

41 lines
854 B
Django/Jinja

services:
{%- if include_agent %}
agent:
build: ./agent
env_file: ./agent/.env
ports:
- "{{ agent_port }}:{{ agent_port }}"
restart: unless-stopped
{%- endif %}
{%- if include_backend %}
backend:
build: ./backend
env_file: ./backend/.env
ports:
- "{{ backend_port }}:{{ backend_port }}"
{%- if include_agent %}
depends_on:
- agent
{%- endif %}
restart: unless-stopped
{%- endif %}
{%- if include_frontend %}
frontend:
build:
context: ./frontend
{%- if include_backend %}
args:
VITE_BACKEND_WS_URL: ws://localhost:{{ backend_port }}
VITE_BACKEND_HTTP_URL: http://localhost:{{ backend_port }}
{%- endif %}
ports:
- "{{ frontend_port }}:80"
{%- if include_backend %}
depends_on:
- backend
{%- endif %}
restart: unless-stopped
{%- endif %}