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>
This commit is contained in:
commit
9d910eb147
26 changed files with 2591 additions and 0 deletions
33
compose.yml
Normal file
33
compose.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue