-
Notifications
You must be signed in to change notification settings - Fork 854
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 1.27 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
# Single-service compose for OpenAlice self-hosting.
#
# First time:
# docker compose up -d --build
# docker exec -it openalice claude # OAuth — paste URL into a browser
# docker exec -it openalice codex login # same for codex (if you use it)
#
# After that the volume holds your auth + workspaces + config across
# restarts and image rebuilds. Tear-down + factory reset:
# docker compose down -v # also nukes the volume
#
# Already have claude/codex auth on the host? Skip the docker exec step by
# uncommenting the bind-mount lines below.
services:
openalice:
build: .
image: openalice:local
container_name: openalice
restart: unless-stopped
ports:
# Web UI. The MCP server (47332) is intentionally NOT exposed — it's
# only consumed by the CLIs running inside this container.
- "47331:47331"
volumes:
- openalice-data:/data
# Optional: reuse host auth instead of authenticating inside the
# container. Bind-mount your local credentials read-only.
# - ${HOME}/.claude:/data/home/.claude:ro
# - ${HOME}/.codex:/data/home/.codex:ro
# Keep stdin/tty open so `docker exec -it openalice claude` can run
# the interactive OAuth flow.
stdin_open: true
tty: true
volumes:
openalice-data: