-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
41 lines (39 loc) · 1.03 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
version: "3.9"
services:
keycloak:
build:
context: keycloak
args:
KEYCLOAK_VERSION: 22.0.0
command: ['start-dev', '--import-realm']
depends_on:
- db
environment:
JAVA_OPTS_APPEND: -Dkeycloak.profile.feature.upload_scripts=enabled
KC_DB: postgres
KC_DB_PASSWORD: postgres
KC_DB_URL: jdbc:postgresql://db/keycloak
KC_DB_USERNAME: postgres
KC_HEALTH_ENABLED: false
KC_HTTP_ENABLED: true
KC_METRICS_ENABLED: false
KC_HOSTNAME_URL: http://127.0.0.1:8180/
KC_PROXY: reencrypt
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
volumes:
- ./keycloak/import:/opt/keycloak/data/import
ports:
- 8180:8080
db:
image: postgres:14.9
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 5s
retries: 10
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: keycloak
POSTGRES_HOST: postgres