Update only-tdy/docker-compose.yml

This commit is contained in:
Dejan 2026-11-16 12:47:27 +00:00
parent ca45218d4f
commit 8838c73910

View file

@ -1,48 +1,28 @@
# only-tdy runs beside Tududi and is reached only through a reverse proxy on the # Portainer-compatible only-tdy stack (prebuilt image, no local Dockerfile needed).
# Tududi origin, so it binds to loopback and never to a public interface. It is a # For Git deployment in Forgejo, set Compose path: only-tdy/docker-compose.yml
# static server: no volume, no secret, no writable path that survives a restart.
name: only-tdy name: only-tdy
services: services:
only-tdy: only-tdy:
build: image: ${ONLY_TDY_IMAGE:-ghcr.io/muatasim-aswad/only-tdy:v0.1.4}
context: . pull_policy: missing
dockerfile: Dockerfile
args:
APP_REVISION: ${APP_REVISION:-dev}
APP_COMMIT_TIME: ${APP_COMMIT_TIME:-}
APP_BUILD_TIME: ${APP_BUILD_TIME:-}
SOURCE_DATE_EPOCH: ${SOURCE_DATE_EPOCH:-0}
# image: ${ONLY_TDY_IMAGE:-ghcr.io/muatasim-aswad/only-tdy:v0.1.4}
# pull_policy: missing
platform: linux/amd64 platform: linux/amd64
restart: unless-stopped restart: unless-stopped
# Loopback only. The reverse proxy forwards /only-tdy here. # Accessible only on the Docker host, for a reverse proxy on that host.
ports: ports:
- '127.0.0.1:${ONLY_TDY_PORT:-3003}:8080' - "127.0.0.1:${ONLY_TDY_PORT:-3003}:8080"
read_only: true read_only: true
tmpfs: tmpfs:
# nginx writes only its pid file and request temp files, both under /tmp.
- /tmp:rw,noexec,nosuid,nodev,size=16m - /tmp:rw,noexec,nosuid,nodev,size=16m
cap_drop: cap_drop:
- ALL - ALL
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
healthcheck: healthcheck:
test: test: ["CMD", "wget", "--quiet", "--spider", "--tries=1", "http://127.0.0.1:8080/healthz"]
[
'CMD',
'wget',
'--quiet',
'--spider',
'--tries=1',
'http://127.0.0.1:8080/healthz',
]
interval: 30s interval: 30s
timeout: 5s timeout: 5s
start_period: 5s start_period: 5s
@ -51,9 +31,8 @@ services:
mem_limit: 128m mem_limit: 128m
cpus: 0.5 cpus: 0.5
pids_limit: 64 pids_limit: 64
logging: logging:
driver: json-file driver: json-file
options: options:
max-size: '10m' max-size: "10m"
max-file: '3' max-file: "3"