-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
59 lines (54 loc) · 1.31 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
50
51
52
53
54
55
56
57
58
59
version: "3"
services:
postgres:
container_name: ajava_db
image: postgres:14.5-alpine
restart: always
ports:
- "15432:5432"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=passwd
- POSTGRES_DB=ajavadb
volumes:
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
keycloak_db:
container_name: keycloak_db
image: postgres:14.5-alpine
ports:
- "5432:5432"
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
PGPASSWORD: password
volumes:
- ./postgres_data:/var/lib/postgresql/data
networks:
- keycloak
keycloak:
image: quay.io/keycloak/keycloak:19.0.2
command: start-dev --import-realm
depends_on:
- keycloak_db
environment:
- KC_DB=postgres
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=password
- KC_DB_URL=jdbc:postgresql://keycloak-db:5432/keycloak
- KC_LOG=console
- KC_LOG_LEVEL=INFO
- KC_REALM_NAME=octo
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=password
ports:
- "8090:8080"
volumes:
- ./keycloak/realms/:/opt/keycloak/data/import/
networks:
- keycloak
volumes:
ajava-db-data:
driver: local
networks:
keycloak: