-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
41 lines (39 loc) · 1020 Bytes
/
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
services:
keycloak-db:
image: postgres:17-alpine
container_name: keycloak-security-db
environment:
# we keep the passwords simple here
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_ROOT_PASSWORD=password
- POSTGRES_DB=keycloak
ports:
- "5432:5432"
volumes:
- keycloak_security_db_data:/var/lib/postgresql/data
networks:
- keycloak-security
keycloak:
image: quay.io/keycloak/keycloak:26.0
container_name: keycloak-security-keycloak
environment:
# we keep the passwords simple here
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=password
- KC_DB_SCHEMA=public
- KC_DB_URL_HOST=keycloak-db
- KC_DB_URL_DATABASE=keycloak
- KC_DB_USERNAME=admin
- KC_DB_PASSWORD=password
command: start-dev
ports:
- "8090:8080"
networks:
- keycloak-security
depends_on:
- keycloak-db
volumes:
keycloak_security_db_data:
networks:
keycloak-security: