forked from element-hq/element-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 2.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (61 loc) · 2.13 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
services:
# Element Web Client
element-web:
build:
context: .
dockerfile: apps/web/Dockerfile
args:
GENERATE_API_URL: ${GENERATE_API_URL}
container_name: element-web
environment:
# Use an unprivileged port — nginx-unprivileged cannot bind to port 80
ELEMENT_WEB_PORT: ${ELEMENT_WEB_PORT}
ports:
- "${ELEMENT_WEB_PORT}:${ELEMENT_WEB_PORT}"
volumes:
# Mount your custom config.json at runtime so it is picked up by the
# entrypoint script (which copies /app/config*.json → /tmp/element-web-config/)
- ./apps/web/config.json:/app/config.json:ro
networks:
- dynamic-rooms
healthcheck:
test: ["CMD", "sh", "-c", "wget -q --spider http://localhost:$${ELEMENT_WEB_PORT}/config.json"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
# Dynamic Room Bot Server
bot:
build:
context: .
dockerfile: bot-server/Dockerfile
container_name: dynamic-room-bot
environment:
NODE_ENV: ${NODE_ENV}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY}
MATRIX_HOMESERVER_URL: ${MATRIX_HOMESERVER_URL}
MATRIX_BOT_TOKEN: ${MATRIX_BOT_TOKEN}
MATRIX_BOT_USER_ID: ${MATRIX_BOT_USER_ID}
BUNDLE_PORT: ${BUNDLE_PORT}
BUNDLE_BASE_URL: ${BUNDLE_BASE_URL}
ports:
- "${BUNDLE_PORT}:${BUNDLE_PORT}"
volumes:
# Persist generated bundles across restarts
- bot-bundles:/app/public/bundles
# Workspace for Claude Code (optional, for debugging)
- bot-workspace:/app/renderer-workspace
networks:
- dynamic-rooms
healthcheck:
test: ["CMD", "sh", "-c", "curl -f http://localhost:$${BUNDLE_PORT}/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
volumes:
bot-bundles:
bot-workspace:
networks:
dynamic-rooms:
driver: bridge