39fe248f9f
- 新增 .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 入库
41 lines
854 B
Django/Jinja
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 %}
|