-
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathcompose.yml
More file actions
33 lines (32 loc) · 1.28 KB
/
compose.yml
File metadata and controls
33 lines (32 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
voidauth:
image: voidauth/voidauth:latest
restart: unless-stopped
volumes:
- ./voidauth/config:/app/config
# Only required for declaring OIDC Apps via docker labels (see OIDC-Setup documentation)
# - /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- "3000:3000" # may not be needed, depending on reverse-proxy setup
environment:
# Required environment variables, set in .env file or replace ${...} with value
# See https://voidauth.app/#/Getting-Started?id=environment-variables for a list of possible environment variables
APP_URL: ${APP_URL} # required
DB_ADAPTER: postgres # this is the default value
DB_HOST: voidauth-db # required
DB_PASSWORD: ${DB_PASSWORD} # required, and must be the same as POSTGRES_PASSWORD in voidauth-db service
STORAGE_KEY: ${STORAGE_KEY} # required
depends_on:
voidauth-db:
condition: service_healthy
voidauth-db:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD} # required, and must be the same as DB_PASSWORD in voidauth service
ports:
- "5432:5432"
volumes:
- ./voidauth/db:/var/lib/postgresql/18/docker
healthcheck:
test: "pg_isready -U postgres -h localhost"