Portainer/only-tdy/docker-compose.yml

39 lines
987 B
YAML
Raw Normal View History

2026-11-16 12:47:27 +00:00
# Portainer-compatible only-tdy stack (prebuilt image, no local Dockerfile needed).
# For Git deployment in Forgejo, set Compose path: only-tdy/docker-compose.yml
2026-11-16 12:40:37 +00:00
name: only-tdy
services:
only-tdy:
2026-11-16 12:47:27 +00:00
image: ${ONLY_TDY_IMAGE:-ghcr.io/muatasim-aswad/only-tdy:v0.1.4}
pull_policy: missing
2026-11-16 12:40:37 +00:00
platform: linux/amd64
restart: unless-stopped
2026-11-16 12:47:27 +00:00
# Accessible only on the Docker host, for a reverse proxy on that host.
2026-11-16 12:40:37 +00:00
ports:
2026-11-16 12:59:22 +00:00
- "192.168.107.13:${ONLY_TDY_PORT:-3003}:8080"
2026-11-16 12:40:37 +00:00
read_only: true
tmpfs:
- /tmp:rw,noexec,nosuid,nodev,size=16m
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
2026-11-16 12:47:27 +00:00
test: ["CMD", "wget", "--quiet", "--spider", "--tries=1", "http://127.0.0.1:8080/healthz"]
2026-11-16 12:40:37 +00:00
interval: 30s
timeout: 5s
start_period: 5s
retries: 3
mem_limit: 128m
cpus: 0.5
pids_limit: 64
logging:
driver: json-file
options:
2026-11-16 12:47:27 +00:00
max-size: "10m"
max-file: "3"