Files
2026-11-23 23:55:37 +07:00

25 lines
642 B
YAML

name: vzlet-demo
services:
demo:
build: {context: ., dockerfile: Dockerfile.demo}
restart: unless-stopped
user: "10001:10001"
read_only: true
cap_drop: [ALL]
security_opt: ["no-new-privileges:true"]
environment: {GOMEMLIMIT: 80MiB, GOMAXPROCS: "1"}
pids_limit: 48
mem_limit: 128m
cpus: 1
ulimits:
nofile: {soft: 512, hard: 512}
ports: ["${BIND_ADDRESS:-127.0.0.1}:${HTTP_PORT:-8080}:8080"]
healthcheck:
test: ["CMD","/server","-health"]
interval: 20s
timeout: 3s
retries: 3
logging:
driver: json-file
options: {max-size: "2m", max-file: "2"}