Files
preauth/docs/examples/compose.yaml
T
lyra 538bd74100
PHP Test / test (pull_request) Successful in 52s
Tests / test (pull_request) Successful in 52s
docker to be more inline with other projects and best practices
2026-09-25 08:25:55 -04:00

25 lines
828 B
YAML

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: <uid>:<gid>
volumes:
- preauth-config:/config
- preauth-data:/data
volumes:
preauth-config:
preauth-data: