forked from imimap/imimap21
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (78 loc) · 1.77 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3.7"
services:
client:
build: ./client
image: htwimimap/client:latest
ports:
- "3000:80"
environment:
- VUE_APP_API_HOST=${API_HOST}
- HOST_NAME=${HOST_NAME}
- VIRTUAL_HOST=${HOST_NAME}
- VIRTUAL_PATH=/
server:
build: ./server
image: htwimimap/server:latest
ports:
- "9000:9000"
depends_on:
- db
environment:
- NODE_ENV=${NODE_ENV}
- LDAP_URL=${LDAP_URL}
- LDAP_SEARCH_BASE=${LDAP_SEARCH_BASE}
- LDAP_STUDENT_GROUP=${LDAP_STUDENT_GROUP}
- LDAP_INSTRUCTOR_GROUP=${LDAP_INSTRUCTOR_GROUP}
- AUTH_SECRET=${AUTH_SECRET}
- REFRESH_SECRET=${REFRESH_SECRET}
- BYPASS_LDAP=${BYPASS_LDAP}
- API_HOST=${API_HOST}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- VIRTUAL_HOST=${HOST_NAME}
- VIRTUAL_PATH=/api/
- VIRTUAL_PORT=9000
networks:
- backend
- default
volumes:
- ./pdf-store:/server/pdfs
db:
image: mongo:bionic
volumes:
- db-data:/data/db
networks:
- backend
depends_on:
- client
db-gui:
image: mongo-express
ports:
- "8081:8081"
depends_on:
- db
environment:
- ME_CONFIG_SITE_BASEURL=/_dbgui_/
- ME_CONFIG_MONGODB_SERVER=db
- ME_CONFIG_BASICAUTH_USERNAME=${ME_USER}
- ME_CONFIG_BASICAUTH_PASSWORD=${ME_PASS}
- VIRTUAL_HOST=${HOST_NAME}
- VIRTUAL_PATH=/_dbgui_/
- VIRTUAL_PORT=8081
networks:
- backend
- default
nginx-proxy:
image: nginxproxy/nginx-proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- /etc/ssl:/etc/nginx/certs
networks:
- backend
- default
volumes:
db-data:
networks:
backend: