-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.debug.yaml
More file actions
41 lines (41 loc) · 1.51 KB
/
Copy pathdocker-compose.debug.yaml
File metadata and controls
41 lines (41 loc) · 1.51 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
33
34
35
36
37
38
39
40
41
services:
sandbox:
container_name: sandbox
build:
context: .
dockerfile: docker/Dockerfile
args:
HTTP_PROXY: ${HTTP_PROXY:-}
HTTPS_PROXY: ${HTTPS_PROXY:-}
NO_PROXY: ${NO_PROXY:-localhost,127.0.0.1}
security_opt:
- seccomp:unconfined
extra_hosts:
- "host.docker.internal:host-gateway"
restart: "unless-stopped"
shm_size: "2gb"
mem_limit: "4g"
cpus: "2"
ports:
- "${HOST_PORT:-8080}:8080"
env_file:
- .env
environment:
SUPERVISOR_CONF_DIR: ${SUPERVISOR_CONF_DIR:-/home/sandbox/app.supervisor.d}
TZ: ${TZ:-Asia/Shanghai}
JWT_SECRET: ${JWT_SECRET:-}
JWT_AUTH_REQUIRED: ${JWT_AUTH_REQUIRED:-}
ENABLE_MCP: ${ENABLE_MCP:-true}
ENABLE_BROWSER: ${ENABLE_BROWSER:-true}
ENABLE_VNC: ${ENABLE_VNC:-true}
APP_SERVICE_PORT: ${APP_SERVICE_PORT:-9000}
volumes:
- ${LOCAL_MEMORY:-./docker/volumes}/workspaces:/home/sandbox/workspaces
- ${LOCAL_MEMORY:-./docker/volumes}/agent/prompts:/home/sandbox/agent/prompts
- ${LOCAL_MEMORY:-./docker/volumes}/bin:/home/sandbox/.local/bin
- ${LOCAL_SUPERVISOR_CONF:-./docker/volumes/app.supervisor.d}:/home/sandbox/app.supervisor.d
- ${LOCAL_USERDATA:-./docker/volumes/userdata}:/home/sandbox/userdata
- ~/.ssh/id_rsa:/home/sandbox/.ssh/id_rsa:ro
- ${LOCAL_INIT_SCRIPTS:-./docker/volumes/init.d}:/docker-entrypoint.d:ro
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./web/terminal:/var/www/terminal:ro