feat(demo): add read-only demo dockerfile and nginx api mocking.

This commit is contained in:
2026-01-01 16:19:18 -06:00
parent 9d2a19a7bd
commit c174d4af49
3 changed files with 227 additions and 0 deletions

29
docker-compose.demo.yml Normal file
View File

@@ -0,0 +1,29 @@
services:
meshchatx-demo:
build:
context: .
dockerfile: Dockerfile.demo
image: ${MESHCHAT_DEMO_IMAGE:-reticulum-meshchatx-demo:local}
container_name: reticulum-meshchatx-demo
restart: unless-stopped
ports:
- "8080:8080"
# Security Hardening
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp:mode=1777
- /var/cache/nginx:mode=1777
- /var/run:mode=1777
cap_drop:
- ALL
# Resource Limits
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 64M