forked from Stem-Studio/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
76 lines (73 loc) · 2.56 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
76 lines (73 loc) · 2.56 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
# Full local stack: site + editor + player + docs + copilot + multiplayer.
#
# Adds two sidecars on top of the static site container:
# - ai-server: Go AI proxy (server/cmd/ai-server). Hit via /api/* from
# the editor; nginx reverse-proxies. Needs BYOK keys in .env or
# env vars (ANTHROPIC_API_KEY, OPENAI_API_KEY, …) to actually call
# providers; the proxy itself starts without keys.
# - mp-server: Colyseus multiplayer. Reachable at /colyseus/ via nginx.
#
# Bring up:
# docker compose -f docker-compose.full.yml up --build
#
# Then visit the same URLs as the basic stack — the editor will see a
# live AI provider and a working multiplayer room server.
services:
site:
build:
context: .
dockerfile: Dockerfile
image: buildwithstem-site:latest
container_name: buildwithstem-site
ports:
- "8080:80"
volumes:
- ./docker/nginx.full.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
ai-server:
condition: service_started
mp-server:
condition: service_started
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
ai-server:
build:
context: .
dockerfile: docker/Dockerfile.ai
image: buildwithstem-ai:latest
container_name: buildwithstem-ai
environment:
- BUILD_MODE=oss
- AI_SERVER_PORT=8081
# BYOK keys — set in a .env file next to this compose file,
# or `export` them in your shell before `docker compose up`.
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- MESHY_API_KEY=${MESHY_API_KEY:-}
- ELEVENLABS_API_KEY=${ELEVENLABS_API_KEY:-}
- ANYTHING_WORLD_API_KEY=${ANYTHING_WORLD_API_KEY:-}
expose:
- "8081"
# Direct host access for debugging — comment out in shared envs.
ports:
- "127.0.0.1:8081:8081"
restart: unless-stopped
mp-server:
build:
context: .
dockerfile: docker/Dockerfile.mp
image: buildwithstem-mp:latest
container_name: buildwithstem-mp
environment:
- NODE_ENV=production
- PORT=2567
expose:
- "2567"
ports:
- "127.0.0.1:2567:2567"
restart: unless-stopped