-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocker-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
volumes:
postgres_data:
driver: local
services:
postgres:
image: postgres:latest
container_name: keycloak_postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak:25.0.4
command:
- start-dev
container_name: keycloak_server
ports:
- 8080:8080
volumes:
# Providers
# - './providers:/opt/keycloak/providers'
# Development theme folder
- './themes/custom-theme/theme:/opt/keycloak/themes'
depends_on:
- postgres
environment:
KC_HOSTNAME: localhost
# KC_HOSTNAME_STRICT: "false"
# KC_HOSTNAME_STRICT_BACKCHANNEL: "false"
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://keycloak_postgres:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HEALTH_ENABLED: "true"
KC_LOG_LEVEL: info