From 91bb67da51916b2659d76073fb0014b4b9eb1315 Mon Sep 17 00:00:00 2001 From: Andrew Stowell Date: Wed, 19 Nov 2025 10:42:13 -0500 Subject: [PATCH] example docker compose --- example.env => .env.example | 5 +++++ compose.yaml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) rename example.env => .env.example (87%) create mode 100644 compose.yaml diff --git a/example.env b/.env.example similarity index 87% rename from example.env rename to .env.example index 4e2ae52..19c20bf 100644 --- a/example.env +++ b/.env.example @@ -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 + diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..4771977 --- /dev/null +++ b/compose.yaml @@ -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: +