-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (58 loc) · 1.35 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
60
61
62
63
version: '3.8'
services:
goiam-bridge:
build:
context: .
dockerfile: Dockerfile
container_name: goiam-bridge
ports:
- "8080:8080"
environment:
- APP_ENVIRONMENT=development
- KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID}
- KEYCLOAK_CLIENT_SECRET=${KEYCLOAK_CLIENT_SECRET}
- OKTA_CLIENT_ID=${OKTA_CLIENT_ID}
- OKTA_CLIENT_SECRET=${OKTA_CLIENT_SECRET}
volumes:
- ./config:/app/config
depends_on:
- keycloak
networks:
- goiam-network
keycloak:
image: quay.io/keycloak/keycloak:latest
container_name: keycloak
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL=jdbc:postgresql://postgres:5432/keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=keycloak
ports:
- "8180:8080"
depends_on:
- postgres
command:
- start-dev
networks:
- goiam-network
postgres:
image: postgres:15-alpine
container_name: keycloak-postgres
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=keycloak
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- goiam-network
volumes:
postgres_data:
driver: local
networks:
goiam-network:
driver: bridge