Add SSH-provisioned TOTP login with JWT sessions
This commit is contained in:
+15
@@ -11,12 +11,16 @@ x-app-environment: &app-environment
|
||||
FFPROBE_PATH: /usr/bin/ffprobe
|
||||
CHROMIUM_PATH: /usr/bin/chromium
|
||||
RENDER_ORIGIN: http://web:3000
|
||||
AUTH_CONFIG_FILE: ${AUTH_CONFIG_FILE:-}
|
||||
AUTH_COOKIE_SECURE: ${AUTH_COOKIE_SECURE:-true}
|
||||
|
||||
x-app: &app
|
||||
image: ${PROMPT_IMAGE:-prompt:local}
|
||||
restart: unless-stopped
|
||||
environment: *app-environment
|
||||
init: true
|
||||
volumes:
|
||||
- auth_data:/auth:ro
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
cap_drop: [ALL]
|
||||
@@ -47,6 +51,16 @@ services:
|
||||
timeout: 5s
|
||||
retries: 4
|
||||
start_period: 10s
|
||||
auth-admin:
|
||||
<<: *app
|
||||
profiles: [tools]
|
||||
restart: "no"
|
||||
user: root
|
||||
cap_drop: []
|
||||
cap_add: [CHOWN, FOWNER, DAC_OVERRIDE]
|
||||
volumes:
|
||||
- auth_data:/auth
|
||||
command: ["node", "auth-cli.cjs", "init"]
|
||||
migrate:
|
||||
<<: *app
|
||||
profiles: [tools]
|
||||
@@ -100,5 +114,6 @@ services:
|
||||
volumes:
|
||||
- objects:/data
|
||||
volumes:
|
||||
auth_data:
|
||||
postgres_data:
|
||||
objects:
|
||||
|
||||
Reference in New Issue
Block a user