-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (44 loc) · 1.13 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
services:
keycloak-demo:
image: quay.io/keycloak/keycloak:latest
command: ["--verbose","start-dev"]
environment:
KC_DB: postgres
KC_DB_URL_HOST: postgres_keycloak_demo
KC_DB_URL_DATABASE: keycloak
KC_DB_PASSWORD: password
KC_DB_USERNAME: keycloak
KC_DB_SCHEME: public
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
ports:
- "8078:8080"
volumes:
#- /theme:/opt/keycloak/themes
- keycloak_data:/opt/keycloak/data
depends_on:
postgres_keycloak_demo:
condition: service_healthy
networks:
- keycloak_demo_dev_network
postgres_keycloak_demo:
image: postgres:14.5-bullseye
command: postgres -c 'max_connections=200'
volumes:
- pgdata_keycloack_demo:/var/lib/postgresql/pgdata_keycloack_demo
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
healthcheck:
test: "exit 0"
ports:
- "5436:5432"
networks:
- keycloak_demo_dev_network
volumes:
pgdata_keycloack_demo:
keycloak_data:
networks:
keycloak_demo_dev_network:
driver: bridge