tools/compose.yml
neil 9d910eb147 Tools site: Markdown editor, JSON editor, 24-hour pastebin
Single FastAPI container with a registry-driven single-page front end, so
new tools are one module plus one registry entry. Runs as one container behind a reverse proxy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 23:32:22 -08:00

33 lines
856 B
YAML

# Host networking + loopback bind: only a proxy or tunnel on the same host can reach it.
# It listens on 127.0.0.1:8090.
name: tools
services:
tools:
build: ./app
image: tools:latest
container_name: tools
restart: unless-stopped
network_mode: host
environment:
HOST: 127.0.0.1
PORT: "8090"
volumes:
- ./data:/data
# Small and capped: it shares a small server with other workloads.
mem_limit: 192m
cpus: 0.5
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8090/healthz', timeout=3)"]
interval: 30s
timeout: 5s
retries: 3
logging:
driver: json-file
options:
max-size: 5m
max-file: "2"