-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (35 loc) · 992 Bytes
/
docker-compose.yml
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
version: '3'
services:
db:
image: postgres:14.2-alpine
restart: "always"
shm_size: "128mb"
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD-Postgres123}
healthcheck:
test: "pg_isready -U postgres"
volumes:
- postgres-data:/usr/share/postgres/data
sso:
image: openconceptlab/oclsso:nightly
build: .
depends_on:
- db
ports:
- 8443:8443
# Use when behind load balancer with SSL
#- 8100:8100
healthcheck:
test: curl --silent --fail --insecure https://localhost:8443/health/ || exit 1
command: ["start", "--optimized", "--import-realm", "--http-port 8100"]
environment:
- KC_DB_URL=jdbc:postgresql://db:5432/
- KC_DB_USERNAME=postgres
- KC_DB_PASSWORD=${DB_PASSWORD-Postgres123}
- KC_HOSTNAME=localhost
# Use when behind load balancer with SSL
#- KC_PROXY=edge
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=Admin123
volumes:
postgres-data: