-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
42 lines (39 loc) · 936 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
42
services:
db:
image: postgres:latest
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: dfoto
ports:
- 5432:5432
volumes:
- db_data:/var/lib/postgresql/data
auth:
image: quay.io/keycloak/keycloak:latest
command: start-dev --import-realm
depends_on:
- auth-db
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB_URL_HOST: auth-db
KC_DB_URL_DATABASE: keycloak
KC_DB_USERNAME: root
KC_DB_PASSWORD: password
env_file: .env
ports:
- 8080:8080
volumes:
- ./misc/dtek-realm.json:/opt/keycloak/data/import/dtek-realm.json
auth-db:
image: postgres:latest
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: keycloak
volumes:
- auth_db_data:/var/lib/postgresql/data
volumes:
db_data:
auth_db_data: