# Deployed on prod by the panel (reudy-net/panel): it builds this, injects the # app's environment variables, and publishes web:8470 on 127.0.0.1 for the # route, which must have Authelia turned on. The variables come from running # `sessions-ctl keygen` on the dev box — see README "Deploy on prod". services: web: build: ./web image: localhost/sessions-web:latest restart: unless-stopped # Reaps the SSH master connection app.py leaves running between calls. init: true read_only: true tmpfs: - /tmp cap_drop: - ALL security_opt: - no-new-privileges:true healthcheck: test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8470/healthz', timeout=4)"] interval: 60s timeout: 5s