-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
42 lines (39 loc) · 1.1 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
version: '3'
services:
keycloak:
image: jboss/keycloak:6.0.1
restart: on-failure
command:
- "-b"
- "0.0.0.0"
- "-Dkeycloak.migration.action=import"
- "-Dkeycloak.migration.provider=dir"
- "-Dkeycloak.migration.dir=/config/"
- "-Dkeycloak.migration.strategy=IGNORE_EXISTING"
volumes:
- ./config:/config/
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
- DB_VENDOR=postgres
- DB_USER=admin
- DB_PASSWORD=password
- DB_ADDR=keycloak-db
- DB_PORT=5432
- DB_DATABASE=keycloakdb
ports:
- "8089:8080"
- "443:8443"
depends_on:
- keycloak-db
keycloak-db:
image: postgres:10
restart: on-failure
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: keycloakdb
volumes:
- keycloak-vol:/var/lib/postgresql/data
volumes:
keycloak-vol: