example docker compose

This commit is contained in:
2025-11-19 10:42:13 -05:00
parent 9d4dae4a93
commit 91bb67da51
2 changed files with 24 additions and 0 deletions
+5
View File
@@ -16,3 +16,8 @@ PREAUTH_ID_NAME='Session ID'
PREAUTH_TOKEN_NAME='Authentication Token'
PREAUTH_SUBMIT_NAME='Submit'
# who owns the session files
# permissions of the volumn must match
USER_ID=1000
GROUP_ID=1000
+19
View File
@@ -0,0 +1,19 @@
services:
preauth:
env_file:
# TODO rename ".env.example" to just ".env"
# edit USER_ID and GROUP_ID if needed
# set PREAUTH_KEY and PREAUTH_TOKEN after initial start to persist those settings
- .env
expose:
- 9000
image: digitaladapt/preauth
init: true
restart: unless-stopped
user: ${USER_ID}:${GROUP_ID}
volumes:
- preauth-sessions:/tmp/sessions
volumes:
preauth-sessions: