name: vzlet x-app-security: &app-security user: "10001:10001" read_only: true cap_drop: [ALL] security_opt: ["no-new-privileges:true"] pids_limit: 96 mem_limit: 384m cpus: 1 tmpfs: ["/tmp:rw,noexec,nosuid,nodev,size=32m,mode=1777"] logging: driver: json-file options: {max-size: "5m", max-file: "2"} services: bot: <<: *app-security build: {context: ., target: worker} restart: unless-stopped networks: [decisions] healthcheck: test: ["CMD","python","-c","import urllib.request; urllib.request.urlopen('http://127.0.0.1:8081/health', timeout=2)"] interval: 10s timeout: 3s retries: 8 web: <<: *app-security build: {context: ., target: web} restart: unless-stopped ports: ["${BIND_ADDRESS:-127.0.0.1}:${HTTP_PORT:-8080}:8080"] volumes: [sqlite_data:/data] environment: SQLITE_PATH: /data/dispatch.sqlite3 BOT_URL: http://bot:8081 COOKIE_SECURE: ${COOKIE_SECURE:-0} networks: [ingress, decisions] depends_on: bot: {condition: service_healthy} healthcheck: test: ["CMD","python","-c","import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/health', timeout=2)"] interval: 10s timeout: 3s retries: 8 networks: ingress: {} decisions: {internal: true} volumes: sqlite_data: {}