services: preauth: env_file: # copy ".env.example" to ".env", edit as needed, and put APP_SECRET # in it (any long random string). # strongly recommend setting TOTP_URI, if not provided the app # will generate one for you, please copy it into your .env file - .env expose: - 80 image: digitaladapt/preauth:latest restart: unless-stopped # The image runs as the non-root `app` user (uid/gid 1000) and creates # its state directories owned by that user, so a named volume inherits # the right ownership on first start — no `user:` override is needed. # If you pin one anyway, it must be able to write /config and /data. #user: : volumes: - preauth-config:/config - preauth-data:/data volumes: preauth-config: preauth-data: