-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 1.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
backend:
build:
context: ./local-daemon
dockerfile: Dockerfile
container_name: aegis_pet_backend
user: "${UID:-1000}:${GID:-1000}"
working_dir: ${PWD}/local-daemon
environment:
- HOME=${HOME}
- TZ=Asia/Shanghai
volumes:
# 映射项目目录,确保路径和宿主机保持完全一致以契合 hook 里的绝对路径
- .:${PWD}
# 避免宿主机的 node_modules 覆盖容器内的 node_modules
- ${PWD}/local-daemon/node_modules
# 映射配置及临时状态,实现双向同步
- ${HOME}/.claude:${HOME}/.claude
- ${HOME}/.config/Antigravity:${HOME}/.config/Antigravity
- ${HOME}/.config/opencode:${HOME}/.config/opencode
- ${HOME}/.gemini:${HOME}/.gemini
- ${HOME}/.codex:${HOME}/.codex
- /tmp/code_dog_config.json:/tmp/code_dog_config.json
ports:
- "127.0.0.1:4000:4000"
- "127.0.0.1:4001:4001"
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
restart: always