-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·45 lines (42 loc) · 1.08 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:
postgres-2:
image: postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycl0ak
POSTGRES_USER: keycl0ak
POSTGRES_PASSWORD: password
ports:
- 5433:5432
networks:
- keycloak_network
keycloak-2:
build:
context: ./
dockerfile: Dockerfile
# image: quay.io/keycloak/keycloak:22.0.1
# command:
# - "start-dev"
# - "--import-realm"
# - "--http-port=8070"
environment:
- "KEYCLOAK_IMPORT= /opt/jboss/keycloak/imports/realm-export.json"
- "KEYCLOAK_ADMIN=admin"
- "KEYCLOAK_ADMIN_PASSWORD=admin"
- "KC_DB=postgres"
- "KC_DB_URL= jdbc:postgresql://localhost:5433/keycl0ak"
- "KC_DB_USERNAME=keycl0ak"
- "KC_DB_PASSWORD=password"
volumes:
- ./imports/realm-export.json:/opt/jboss/keycloak/imports/realm-export.json
ports:
- 8071:8080
network_mode: host
depends_on:
- postgres-2
# networks:
# - keycloak_network
networks:
keycloak_network:
driver: bridge