-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (47 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
49 lines (47 loc) · 1.59 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
services:
nib:
build: .
ports:
- "3000:3000"
environment:
NODE_ENV: production
NODE_TLS_REJECT_UNAUTHORIZED: "${NODE_TLS_REJECT_UNAUTHORIZED:-0}"
PORT: "3000"
SESSION_SECRET: ${SESSION_SECRET:?Set SESSION_SECRET in .env}
DB_HOST: postgres
DB_PORT: "5432"
DB_NAME: nib
DB_USER: nib
DB_PASS: ${DB_PASS:?Set DB_PASS in .env}
OIDC_ISSUER: ${OIDC_ISSUER:-https://authelia.grid.local}
OIDC_CLIENT_ID: ${OIDC_CLIENT_ID:-nib}
OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET:?Set OIDC_CLIENT_SECRET in .env}
OIDC_REDIRECT_URI: ${OIDC_REDIRECT_URI:-http://localhost:3000/auth/callback}
OIDC_POST_LOGOUT_URI: ${OIDC_POST_LOGOUT_URI:-http://localhost:3000}
COOKIE_SECURE: "${COOKIE_SECURE:-false}"
ADMIN_SUBS: "${ADMIN_SUBS:-}"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: nib
POSTGRES_USER: nib
POSTGRES_PASSWORD: ${DB_PASS:?Set DB_PASS in .env}
volumes:
- pgdata:/var/lib/postgresql/data
- ./migrations/001_initial.sql:/docker-entrypoint-initdb.d/001_initial.sql:ro
- ./migrations/002_add_user_role.sql:/docker-entrypoint-initdb.d/002_add_user_role.sql:ro
- ./migrations/003_add_session_table.sql:/docker-entrypoint-initdb.d/003_add_session_table.sql:ro
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nib -d nib"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
volumes:
pgdata: