-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·163 lines (148 loc) · 3.57 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
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
151
152
153
154
155
156
157
158
159
160
161
162
version: '2'
networks:
frontend:
backend:
volumes:
db-data:
etherpad-data:
services:
portal:
build: ./portal
env_file: ./docker-common.env
networks:
- frontend
volumes:
- ./hpi-quotedb-static:/mnt/hpi-quotedb-static
ports:
- 80:80
frame:
build: ./frame
env_file: ./docker-common.env
networks:
- frontend
environment:
# all of those will appear in the toplevel navigation in the order of
# their number suffix. pattern is label|URL
- LINK0=Home|/
- LINK1=180|/180/
- LINK2=120|/120/
- LINK3=Etherpad|/etherpad/
- LINK4=Redmine|https://student.hpi.uni-potsdam.de/redmine/
- LINK5=Zitate|/quotedb/
- LINK6=Geocaching|/geocaching
- LINK7=FSR|https://myhpi.de/
# similar to the links, except those go into the
# clubs dropdown. same pattern.
- CLUB0=Zeitungs-Klub|/klub/zeitung
- CLUB1=Kochklub|/klub/kochen
- CLUB2=A capella|/klub/acappella
- CLUB3=Filmklub|/klub/film
- CLUB4=Connect-Klub|http://hpi.de/connect/start.html
volumes:
- ./frame:/var/www/html
ports:
- 8000:80
# https://hub.docker.com/_/mysql/
maindb:
image: mysql
networks:
- backend
env_file: ./docker-common.env
volumes:
- "db-data:/var/lib/mysql"
# https://hub.docker.com/_/wordpress/
wordpress_filmklub:
build: ./wordpress
links:
- maindb:mysql
networks:
- frontend
- backend
ports:
- 8001:80
env_file: ./docker-common.env
environment:
- WORDPRESS_PATH=/klub/film
- WORDPRESS_DB_NAME=wordpress_filmklub
# https://hub.docker.com/_/wordpress/
wordpress_zeitungsklub:
build: ./wordpress
links:
- maindb:mysql
networks:
- frontend
- backend
ports:
- 8002:80
env_file: ./docker-common.env
environment:
- WORDPRESS_PATH=/klub/zeitung
- WORDPRESS_DB_NAME=wordpress_zeitungsklub
# https://hub.docker.com/_/wordpress/
wordpress_acappella:
build: ./wordpress
links:
- maindb:mysql
networks:
- frontend
- backend
ports:
- 8003:80
env_file: ./docker-common.env
environment:
- WORDPRESS_PATH=/klub/acappella
- WORDPRESS_DB_NAME=wordpress_acappella
# https://hub.docker.com/r/tvelocity/etherpad-lite/
etherpad:
image: tvelocity/etherpad-lite
networks:
- frontend
- backend
env_file: ./docker-common.env
environment:
- ETHERPAD_ADMIN_PASSWORD=lkskw929djdnd
- ETHERPAD_ADMIN_USER=admin
- ETHERPAD_PORT=8000
- ETHERPAD_DB_NAME=etherpad
- MYSQL_PORT_3306_TCP_ADDR=maindb
ports:
- 8004:8000
volumes:
- "etherpad-data:/opt/etherpad-lite/var"
links:
- maindb:mysql
onehundredandtwenty:
image: nginx
networks:
- frontend
ports:
- 8005:80
volumes:
- ./onehundredandtwenty:/usr/share/nginx/html
onehundredandeighty:
image: nginx
networks:
- frontend
ports:
- 8006:80
volumes:
- ./onehundredandeighty:/usr/share/nginx/html
quotedb:
build: ./hpi-quotedb
env_file: ./docker-common.env
environment:
- QUOTEDB_DB_NAME=hpiquotedb
- QUOTEDB_DB_HOST=maindb
- QUOTEDB_DB_USER=root
- QUOTEDB_SERVER_BASE_PATH=quotedb/
- DJANGO_SETTINGS_MODULE=hpi_quotedb.settings.production
networks:
- frontend
- backend
ports:
- 8007:8000
volumes:
- ./hpi-quotedb:/usr/src/app
- ./hpi-quotedb-static:/usr/src/app/hpi_quotedb/static
links:
- maindb:mysql