-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
154 lines (152 loc) · 6 KB
/
docker-compose.yml
File metadata and controls
154 lines (152 loc) · 6 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
services:
openclaw-local:
image: openclaw-local
build:
context: .
dockerfile: Dockerfile
container_name: ${SCIENCECLAW_CONTAINER_NAME:-openclaw-local}
working_dir: /data/workspace
stdin_open: true
tty: true
env_file:
- path: .env
required: false
environment:
OPENCLAW_MODEL: ${OPENCLAW_MODEL:-}
DATA_ROOT: /data
OPENCLAW_CONFIG_DIR: /data/.openclaw
OPENCLAW_AUTH_PROFILE_SECRET_DIR: /data/.openclaw/auth-profile-secrets
OPENCLAW_WORKSPACE: /data/workspace
EXTERNAL_STORAGE_ROOT: /external_storage
SCIENCECLAW_CMS_PORT: ${SCIENCECLAW_CMS_PORT:-8090}
SCIENCECLAW_STORAGE_CONFIG: /repo/storage/storage.yml
SCIENCECLAW_BRANDING: ${SCIENCECLAW_BRANDING:-1}
SCIENCECLAW_PROJECT_TITLE: ${SCIENCECLAW_PROJECT_TITLE:-OASIS ScienceClaw Working Group}
OPENCLAW_DEFAULT_MODEL: ${OPENCLAW_DEFAULT_MODEL:-codex/gpt-5.5}
OPENCLAW_GATEWAY_BIND: ${OPENCLAW_GATEWAY_BIND:-lan}
OPENCLAW_GATEWAY_PORT: ${OPENCLAW_GATEWAY_PORT:-18789}
OPENCLAW_GATEWAY_AUTH_MODE: ${OPENCLAW_GATEWAY_AUTH_MODE:-token}
OPENCLAW_CONTROL_ORIGINS: ${OPENCLAW_CONTROL_ORIGINS:-http://127.0.0.1:${OPENCLAW_GATEWAY_PORT:-18789},http://localhost:${OPENCLAW_GATEWAY_PORT:-18789}}
OPENCLAW_SEED_WORKSPACE: ${OPENCLAW_SEED_WORKSPACE:-1}
OPENCLAW_INIT_WORKING_GROUP: ${OPENCLAW_INIT_WORKING_GROUP:-1}
OPENCLAW_START_PI_LIAISON: ${OPENCLAW_START_PI_LIAISON:-1}
OPENCLAW_CONFIGURE_SLACK: ${OPENCLAW_CONFIGURE_SLACK:-1}
SLACK_BOT_TOKEN: ${SLACK_BOT_TOKEN:-}
SLACK_BOT_TOKEN_FILE: ${SLACK_BOT_TOKEN_FILE:-}
SLACK_APP_TOKEN: ${SLACK_APP_TOKEN:-}
SLACK_APP_TOKEN_FILE: ${SLACK_APP_TOKEN_FILE:-}
SLACK_DEFAULT_CHANNEL: ${SLACK_DEFAULT_CHANNEL:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
OPENAI_API_KEY_FILE: ${OPENAI_API_KEY_FILE:-}
VERDE_LLM_BASE_URL: ${VERDE_LLM_BASE_URL:-}
VERDE_LLM_API_KEY: ${VERDE_LLM_API_KEY:-}
VERDE_LLM_API_KEY_FILE: ${VERDE_LLM_API_KEY_FILE:-}
AI_VERDE_API_KEY: ${AI_VERDE_API_KEY:-}
AI_VERDE_API_KEY_FILE: ${AI_VERDE_API_KEY_FILE:-}
VERDE_LLM_DEFAULT_MODEL: ${VERDE_LLM_DEFAULT_MODEL:-}
VERDE_LLM_PROVIDER_NAME: ${VERDE_LLM_PROVIDER_NAME:-}
WORKSPACE_UI_PORT: ${WORKSPACE_UI_PORT:-8888}
OPENCLAW_DISABLE_BONJOUR: "1"
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GITHUB_TOKEN_FILE: ${GITHUB_TOKEN_FILE:-}
GH_TOKEN: ${GH_TOKEN:-}
GH_TOKEN_FILE: ${GH_TOKEN_FILE:-}
TAVILY_API_KEY: ${TAVILY_API_KEY:-}
TAVILY_API_KEY_FILE: ${TAVILY_API_KEY_FILE:-}
volumes:
- ${OPENCLAW_STATE_DIR:-~/.openclaw}:/data/.openclaw
- ${OPENCLAW_STATE_DIR:-~/.openclaw}:/root/.openclaw
- ${DATA_DIR:-./data}:/data
- ${WORKSPACE_DIR:-./workspace}:/data/workspace
- ${WORKSPACE_DIR:-./workspace}:/workspace
- ${EXTERNAL_STORAGE_DIR:-./external_storage}:/external_storage/local
- ${SCIENCECLAW_RUNTIME_SECRETS_DIR:-./secrets}:/run/scienceclaw-secrets:ro
- ./storage:/repo/storage:ro
ports:
- "127.0.0.1:${OPENCLAW_GATEWAY_PORT:-18789}:${OPENCLAW_GATEWAY_PORT:-18789}"
extra_hosts:
- "host.docker.internal:host-gateway"
cpus: "${SCIENCECLAW_CONTAINER_CPUS:-2.0}"
mem_limit: ${SCIENCECLAW_CONTAINER_MEMORY:-50g}
deploy:
resources:
limits:
cpus: "${SCIENCECLAW_CONTAINER_CPUS:-2.0}"
memory: ${SCIENCECLAW_CONTAINER_MEMORY:-50g}
# No restart policy: this service is normally run as an interactive CLI shell.
workspace-ui:
image: openclaw-local
build:
context: .
dockerfile: Dockerfile
working_dir: /data
entrypoint:
- /usr/bin/tini
- --
environment:
DATA_ROOT: /data
OPENCLAW_WORKSPACE: /data/workspace
EXTERNAL_STORAGE_ROOT: /external_storage
SCIENCECLAW_STORAGE_CONFIG: /repo/storage/storage.yml
SCIENCECLAW_BRANDING: ${SCIENCECLAW_BRANDING:-1}
SCIENCECLAW_PROJECT_TITLE: ${SCIENCECLAW_PROJECT_TITLE:-OASIS ScienceClaw Working Group}
WORKSPACE_UI_PORT: ${WORKSPACE_UI_PORT:-8888}
JUPYTER_TOKEN: ${WORKSPACE_UI_TOKEN:-scienceclaw}
volumes:
- ${DATA_DIR:-./data}:/data
- ${WORKSPACE_DIR:-./workspace}:/data/workspace
- ${WORKSPACE_DIR:-./workspace}:/workspace
- ${EXTERNAL_STORAGE_DIR:-./external_storage}:/external_storage/local
- ./storage:/repo/storage:ro
ports:
- "127.0.0.1:${WORKSPACE_UI_PORT:-8888}:8888"
command:
- python3
- -m
- jupyter
- lab
- --ip=0.0.0.0
- --port=8888
- --no-browser
- --allow-root
- --ServerApp.root_dir=/data
- --ServerApp.token=${WORKSPACE_UI_TOKEN:-scienceclaw}
workspace-cms:
image: openclaw-local
build:
context: .
dockerfile: Dockerfile
working_dir: /data
entrypoint:
- /usr/bin/tini
- --
- /usr/local/bin/scienceclaw-service-entrypoint
env_file:
- path: .env
required: false
environment:
DATA_ROOT: /data
OPENCLAW_WORKSPACE: /data/workspace
OPENCLAW_GATEWAY_PORT: ${OPENCLAW_GATEWAY_PORT:-18789}
EXTERNAL_STORAGE_ROOT: /external_storage
SCIENCECLAW_CMS_PORT: 8090
SCIENCECLAW_GATEWAY_URL: ${SCIENCECLAW_GATEWAY_URL:-}
SCIENCECLAW_STORAGE_CONFIG: /repo/storage/storage.yml
SCIENCECLAW_REPO_ROOT: /repo
SCIENCECLAW_CMS_ROOTS: /workspace,/data/outputs,/repo/docs,/repo/examples,/repo/storage,/external_storage/local
GITHUB_TOKEN: ${GITHUB_TOKEN:-}
GH_TOKEN: ${GITHUB_TOKEN:-}
volumes:
- ${DATA_DIR:-./data}:/data
- ${WORKSPACE_DIR:-./workspace}:/data/workspace
- ${WORKSPACE_DIR:-./workspace}:/workspace
- ${EXTERNAL_STORAGE_DIR:-./external_storage}:/external_storage/local
- ${SCIENCECLAW_RUNTIME_SECRETS_DIR:-./secrets}:/run/scienceclaw-secrets:ro
- ./docs:/repo/docs
- ./examples:/repo/examples:ro
- ./storage:/repo/storage:ro
ports:
- "127.0.0.1:${SCIENCECLAW_CMS_PORT:-8090}:8090"
command:
- python3
- /opt/scienceclaw/cms/scienceclaw_cms.py