MeshChatX/docker-compose.dev.yml

48 lines
1.3 KiB
YAML
Raw Normal View History

2026-01-03 17:16:12 -06:00
services:
reticulum-meshchatx:
build:
context: .
dockerfile: Dockerfile
2026-01-03 17:16:12 -06:00
container_name: reticulum-meshchatx
image: reticulum-meshchatx:local
2026-01-03 17:16:12 -06:00
restart: unless-stopped
init: true
user: "1000:1000"
2026-01-03 17:16:12 -06:00
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=256m
- /home/meshchat:nosuid,size=64m
2026-01-03 17:16:12 -06:00
ports:
- 127.0.0.1:8000:8000
volumes:
- meshchatx-config:/config
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import ssl, urllib.request; urllib.request.urlopen('https://127.0.0.1:8000/api/v1/status', context=ssl._create_unverified_context())",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 90s
deploy:
resources:
limits:
cpus: "2.0"
memory: 1G
pids: 512
reservations:
cpus: "0.25"
memory: 256M
volumes:
meshchatx-config:
name: meshchatx-config