forked from Stem-Studio/Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (37 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (37 loc) · 1.35 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
# Basic local stack: site + editor + player. No AI copilot, no multiplayer.
#
# This is the deployment shape used by Cloudflare Pages / Render Static
# Sites — a single static nginx container serving the full multi-shell
# build. The Copilot panel hides itself when no provider is registered,
# so the editor still works end-to-end here.
#
# Bring up:
# docker compose up --build
#
# Visit:
# http://localhost:8080/ landing
# http://localhost:8080/docs docs
# http://localhost:8080/playground playground iframe
# http://localhost:8080/dashboard app shell (project list)
services:
site:
build:
context: .
dockerfile: Dockerfile
image: buildwithstem-site:latest
container_name: buildwithstem-site
ports:
- "8080:80"
# The Dockerfile already bakes nginx.basic.conf as the default,
# but mounting it explicitly here makes the choice visible in the
# compose file and lets you iterate on the routing without
# rebuilding the image.
volumes:
- ./docker/nginx.basic.conf:/etc/nginx/conf.d/default.conf:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost/healthz"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s