34 lines
719 B
YAML
34 lines
719 B
YAML
name: tpschedule-updates
|
|
services:
|
|
updates:
|
|
build: .
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "127.0.0.1:18081:8000"
|
|
volumes:
|
|
- update-data:/app/data
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:size=32m,mode=1777
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
mem_limit: 256m
|
|
cpus: 0.5
|
|
pids_limit: 64
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=3).read()"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "5m"
|
|
max-file: "2"
|
|
volumes:
|
|
update-data:
|