-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
49 lines (46 loc) · 1.14 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
43
44
45
46
47
48
49
version: "3.9"
services:
keycloak:
image: quay.io/keycloak/keycloak:25.0.6
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KC_DB: postgres
KC_DB_USERNAME: admin
KC_DB_PASSWORD: password
KC_DB_URL_HOST: keycloak-db
KC_DB_URL_PORT: 5432
KC_DB_URL_DATABASE: keycloak
KC_LOG_FORMAT: "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"
KC_LOG_LEVEL: "INFO"
command:
- "start-dev"
- "--spi-theme-static-max-age=-1"
- "--spi-theme-cache-themes=false"
- "--spi-theme-cache-templates=false"
ports:
- "8080:8080"
volumes:
- ./src/main/resources/theme:/opt/keycloak/themes/:z
depends_on:
- keycloak-db
networks:
- keycloak-internal
keycloak-db:
image: postgres:14
networks:
- keycloak-internal
ports:
- "5433:5432"
volumes:
- x_postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
volumes:
x_postgres_data:
driver: local
networks:
keycloak-internal:
name: keycloak-internal