forked from voidauth/voidauth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
32 lines (31 loc) · 1.21 KB
/
Copy pathcompose.yml
File metadata and controls
32 lines (31 loc) · 1.21 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
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
# - "3890:3890" # only needed if LDAP Server is enabled
environment:
# Required environment variables
# See https://voidauth.app/#/Getting-Started?id=environment-variables for a list of possible environment variables
APP_URL: # required
DB_ADAPTER: postgres # this is the default value
DB_HOST: voidauth-db # required
DB_PASSWORD: # required, and must be the same as POSTGRES_PASSWORD in voidauth-db service
STORAGE_KEY: # required
depends_on:
voidauth-db:
condition: service_healthy
voidauth-db:
image: postgres:18
restart: unless-stopped
environment:
POSTGRES_PASSWORD: # required, and must be the same as DB_PASSWORD in voidauth service
volumes:
- ./voidauth/db:/var/lib/postgresql/18/docker
healthcheck:
test: "pg_isready -U postgres -h localhost"