-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
46 lines (41 loc) · 1.08 KB
/
docker-compose.yaml
File metadata and controls
46 lines (41 loc) · 1.08 KB
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
version: '3.6'
services:
keycloak_web:
image: quay.io/keycloak/keycloak:26.1.2
container_name: keycloak_web
environment:
KC_HOSTNAME: localhost
KC_LOG_LEVEL: info
KC_METRICS_ENABLED: true
KC_HEALTH_ENABLED: true
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
KEYCLOAK_IMPORT: /opt/keycloak/data/import/realm-export.json
# KC_UPLOAD_SCRIPTS: "true"
# command: start-dev --import-realm
command: start-dev
ports:
- "8080:8080"
volumes:
- ./src/main/resources/keycloak/realm-export.json:/opt/keycloak/data/import/realm-export.json
backend:
build: .
ports:
- "8081:8081"
depends_on:
- keycloak_web
- backenddb
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://backenddb:5432/postgres
backenddb:
image: postgres:latest
ports:
- "5432:5432"
volumes:
- backend_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
backend_data: