-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
43 lines (40 loc) · 996 Bytes
/
docker-compose.yaml
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
version: "3"
volumes:
keycloak-postgres:
external: false
services:
keycloak:
build:
context: .
container_name: keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_SCHEMA=public
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=keycloak
- KC_DB_URL_PORT=5432
- KC_DB_URL_HOST=keycloak-postgres
- KC_DB_URL_DATABASE=keycloak
- KC_HTTP_ENABLED=true
- KC_HOSTNAME_STRICT=false
- KC_HOSTNAME_STRICT_HTTPS=false
command:
- start --features=declarative-user-profile
depends_on:
- keycloak-postgres
ports:
- '8822:8080'
- '9990:9990'
keycloak-postgres:
image: postgres
container_name: keycloak-postgres
volumes:
- keycloak-postgres:/var/lib/postgresql/data
environment:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: keycloak
POSTGRES_DB: keycloak
ports:
- '5432:5432'