-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocker-compose-dev.yaml
150 lines (141 loc) · 2.91 KB
/
Docker-compose-dev.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
version: '3'
services:
nginx:
image: nginx-oss-meetme
volumes:
- /var/log/meetme/nginx/api.log:/logs/api.log
ports:
- 80:80
- 443:443
- 389:389
networks:
- no-internet
- authnet
depends_on:
- backend
- socket
- mongo
deploy:
mode: replicated
replicas: 1
mongo:
image: database-meetme
networks:
- no-internet
- mongo-net
ports:
- 27017:27017
mongo-jr:
image: database-meetme
networks:
- no-internet
- mongo-net
depends_on:
- mongo
mongo-the-third:
image: database-meetme
networks:
- no-internet
- mongo-net
depends_on:
- mongo
mongoinit:
image: mongo # this container will exit after executing the command
restart: 'no'
depends_on:
- mongo
- mongo-jr
- mongo-the-third
networks:
- mongo-net
command: >
mongosh --host mongo:27017 --eval 'rs.initiate({
"_id" : "rs0",
"members" : [
{
"_id" : 0,
"host" : "mongo:27017",
"priority": 5
},
{
"_id" : 1,
"host" : "mongo-jr:27017",
"priority": 1
},
{
"_id" : 2,
"host" : "mongo-the-third:27017",
"priority": 1
}
]
});
'
backend:
image: backend-meetme
environment:
- COOKIE_DURATION=100000
networks:
- no-internet
- authnet
depends_on:
- mongoinit
deploy:
mode: replicated
replicas: 1
frontend:
image: frontend-meetme-webpack
networks:
- no-internet
depends_on:
- mongoinit
volumes:
- ./frontend:/root
deploy:
mode: replicated
replicas: 1
socket:
image: websocket-meetme
networks:
- no-internet
- mongo-net
deploy:
mode: replicated
replicas: 1
openldap:
image: bitnami/openldap:2
environment:
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=adminpassword
- LDAP_USERS=netid1,netid2,netid3,netid4,netid5,netid6
- LDAP_PASSWORDS=rutgers1,rutgers2,rutgers3,rutgers4,rutgers5,rutgers6
- BITNAMI_DEBUG=true
networks:
- authnet
volumes:
- ./openldap_data:/bitnami/openldap
- ./ldaptest/eduPerson.ldif:/schema/custom.ldif
- ./ldaptest/bootstrap.ldif:/ldifs/bootstrap.ldif
ports:
- 1389:1389
shibboleth:
image: shibboleth-idp-meetme
networks:
- authnet
- no-internet
environment:
- JAVA_OPTS=-Djava.security.egd=file:/dev/urandom -Xmx3000m
ports:
- 4443:443
networks:
no-internet:
driver: overlay
attachable: true
authnet:
driver: overlay
attachable: true
mongo-net:
driver: overlay
attachable: true
socat-net:
driver: overlay
attachable: true