35 lines
747 B
YAML
35 lines
747 B
YAML
name: app-feedback
|
|
services:
|
|
feedback:
|
|
build: .
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "127.0.0.1:18080:8000"
|
|
volumes:
|
|
- feedback-data:/app/data
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp:size=256m,mode=1777
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
mem_limit: 512m
|
|
cpus: 1.0
|
|
pids_limit: 64
|
|
stop_grace_period: 180s
|
|
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:
|
|
feedback-data:
|