-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.11 KB
/
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
38
39
40
41
42
43
44
45
46
version: '3.7'
services:
postgres:
image: postgres:9.6.14
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U keycloak"]
interval: 10s
timeout: 5s
retries: 5
keycloak:
hostname: keycloak.localhost
build:
context: ./keycloak-idp
environment:
#- KEYCLOAK_HOSTNAME=keycloak.localhost
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=password
- DB_VENDOR=postgres
- DB_ADDR=postgres
- DB_DATABASE=keycloak # same as default
- DB_USER=keycloak
- DB_PASSWORD=password
- DB_SCHEMA=public # same as default
- KEYCLOAK_IMPORT=/tmp/realm-export.json
ports:
- 8080:8080
healthcheck:
test: curl -f http://localhost:8080/auth/realms/master || exit 1
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
depends_on:
- postgres
shibboleth:
hostname: shibboleth.localhost
build:
context: ./shibboleth-sp
dockerfile: Dockerfile
ports:
- 80:80