-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
41 lines (37 loc) · 911 Bytes
/
docker-compose.yaml
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.7'
services:
keycloak:
image: quay.io/keycloak/keycloak:22.0.1
command: ["start-dev"]
environment:
- KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN}
- KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD}
- KC_DB=postgres
- KC_DB_URL_DATABASE=keycloak
- KC_DB_URL_PORT=5432
- KC_DB_URL_HOST=keycloakdb
- KC_DB_USERNAME=${KC_DB_USERNAME}
- KC_DB_PASSWORD=${KC_DB_PASSWORD}
ports:
- 8083:8080
depends_on:
- keycloakdb
networks:
- keycloak_network
keycloakdb:
image: postgres:latest
volumes:
- keycloakpgdata:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=${KC_DB_USERNAME}
- POSTGRES_PASSWORD=${KC_DB_PASSWORD}
networks:
- keycloak_network
volumes:
keycloakpgdata:
networks:
keycloak_network:
driver: bridge