-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (66 loc) · 2.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
69 lines (66 loc) · 2.28 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
services:
codedeck-bridge:
build:
context: .
dockerfile: docker/Dockerfile
container_name: codedeck-bridge
restart: unless-stopped
networks:
- codedeck-net
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
environment:
- NODE_ENV=production
- GIT_USER=${GIT_USER:-}
- GIT_EMAIL=${GIT_EMAIL:-}
- GIT_REPO=${GIT_REPO:-}
- CODEDECK_RELAYS=${CODEDECK_RELAYS:-}
- CODEDECK_TOR_PROXY_URL=${CODEDECK_TOR_PROXY_URL:-}
secrets:
- source: claude_code_oauth_token
target: claude_code_oauth_token
uid: "1000"
gid: "1000"
mode: 0440
- source: github_token
target: github_token
uid: "1000"
gid: "1000"
mode: 0440
volumes:
- ./data:/data
# Optional bundled Tor daemon — OFF by default. Enable with:
# docker compose --profile tor up -d
# or COMPOSE_PROFILES=tor in .env. If you'd rather point the bridge at an
# existing Tor daemon (e.g. the one already running next to your CLN node)
# instead, leave this profile disabled and set CODEDECK_TOR_PROXY_URL to
# that daemon's reachable SocksPort — the two are mutually exclusive by
# whatever CODEDECK_TOR_PROXY_URL points at.
codedeck-tor:
image: lncm/tor:0.4.7.13@sha256:5a3cfb478d978feb1426ce6dca8e10906bbdd72cff94d7c0c589339f717b2503
container_name: codedeck-tor
restart: unless-stopped
profiles:
- tor
networks:
- codedeck-net
volumes:
- ./data/tor:/var/lib/tor
# SocksPort bound to all interfaces (the image's default torrc binds
# 127.0.0.1, reachable only from the host) so codedeck-bridge can reach it
# by service name on codedeck-net. No torrc file needed — Tor accepts
# these as CLI overrides via the image's `ENTRYPOINT ["tor"]`. Tor logs a
# "public address" warning for 0.0.0.0 — expected and safe here: this port
# is only reachable from other containers on the codedeck-net bridge
# network, never published to the host or the internet (no `ports:` entry).
command: ["--SocksPort", "0.0.0.0:9050", "--Log", "notice stdout"]
secrets:
claude_code_oauth_token:
environment: CLAUDE_CODE_OAUTH_TOKEN
github_token:
environment: GITHUB_TOKEN
networks:
codedeck-net:
driver: bridge