-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
94 lines (91 loc) · 1.74 KB
/
compose.yaml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
networks:
lecture22:
external: false
volumes:
keycloak:
driver: local
mongo:
driver: local
services:
server1:
image: server
build:
context: ./server
environment:
- MONGO_URL=mongodb://mongo
- PROXY_KEYCLOAK_TO_LOCALHOST=true
depends_on:
- mongo
- keycloak
networks:
- lecture22
restart: on-failure
server2:
image: server
build:
context: ./server
environment:
- MONGO_URL=mongodb://mongo
- PROXY_KEYCLOAK_TO_LOCALHOST=true
depends_on:
- mongo
- keycloak
networks:
- lecture22
restart: on-failure
ui1:
image: ui
build:
context: ./ui
networks:
- lecture22
ui2:
image: ui
build:
context: ./ui
networks:
- lecture22
load_balancer:
image: nginx_load_balancer
build: ./nginx-load-balancer
networks:
- lecture22
ports:
- "127.0.0.1:8080:80"
depends_on:
- ui1
- ui2
- server1
keycloak:
image: keycloak18
container_name: keycloak
environment:
- KEYCLOAK_USER=keycloak
# NOTE: this is only for demonstration purposes
# ordinarily, you should NOT embed passwords in files
- KEYCLOAK_PASSWORD=keycl0ak
restart: always
networks:
- lecture22
volumes:
- keycloak:/opt/jboss/keycloak/standalone/data
ports:
- "127.0.0.1:8081:8080"
e2e:
image: e2e
build:
dockerfile: Dockerfile.e2e
depends_on:
- server1
networks:
- lecture22
mongo:
image: mongo:4
container_name: mongo
restart: always
networks:
- lecture22
volumes:
- mongo:/data/db
ports:
- "127.0.0.1:27017:27017"