-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevenv.yml
70 lines (64 loc) · 1.89 KB
/
devenv.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.1'
services:
db:
image: postgres:14.5
ports:
- 5432:5432
volumes:
- ./postgres/data:/var/lib/postgresql/data
- ./postgres/init:/docker-entrypoint-initdb.d
environment:
POSTGRES_PASSWORD: pwpostgres
iamcentral:
image: keycloak/keycloak
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HOSTNAME_URL: https://${DEVENV_SERVERNAME}:8443/iamcentral/auth
KC_HOSTNAME_ADMIN_URL: https://${DEVENV_SERVERNAME}:8443/iamcentral/auth
KC_HOSTNAME_STRICT_BACKCHANNEL: "true"
KC_HTTP_RELATIVE_PATH: auth
KC_PROXY_HEADERS: xforwarded
KC_DB: postgres
KC_DB_URL_HOST: db
KC_DB_URL_PORT: 5432
KC_DB_URL_DATABASE: postgres
KC_DB_SCHEMA: iamcentral
KC_DB_USERNAME: kccentral
KC_DB_PASSWORD: pwkccentral
X509_CA_BUNDLE: /tmp/ca/devenv-ca.crt
command: start-dev
volumes:
- ./keycloak/ca:/tmp/ca
extra_hosts:
- "${DEVENV_SERVERNAME}:${DEVENV_IP}"
iamshared:
image: keycloak/keycloak
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HOSTNAME_URL: https://${DEVENV_SERVERNAME}:8443/iamshared/auth
KC_HOSTNAME_ADMIN_URL: https://${DEVENV_SERVERNAME}:8443/iamshared/auth
KC_HOSTNAME_STRICT_BACKCHANNEL: "true"
KC_HTTP_RELATIVE_PATH: auth
KC_PROXY_HEADERS: xforwarded
KC_DB: postgres
KC_DB_URL_HOST: db
KC_DB_URL_PORT: 5432
KC_DB_URL_DATABASE: postgres
KC_DB_SCHEMA: iamshared
KC_DB_USERNAME: kcshared
KC_DB_PASSWORD: pwkcshared
X509_CA_BUNDLE: /tmp/ca/devenv-ca.crt
command: start-dev
volumes:
- ./keycloak/ca:/tmp/ca
extra_hosts:
- "${DEVENV_SERVERNAME}:${DEVENV_IP}"
ingress:
image: nginx
ports:
- 8443:443
volumes:
- ./nginx/conf/:/etc/nginx/
- ./nginx/certs/:/etc/ssl/certs/