-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
221 lines (208 loc) · 5.75 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
version: '3.7'
services:
keycloak-db:
image: mariadb:10.2
restart: always
environment:
- MYSQL_DATABASE=keycloak
- MYSQL_USER=keycloak
- MYSQL_PASSWORD=${KEYCLOAK_DB_PW}
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
volumes:
- data-keycloak:/var/lib/mysql
keycloak:
image: jboss/keycloak
restart: always
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=${KEYCLOAK_PW}
- DB_VENDOR=mariadb
- DB_ADDR=keycloak-db
- DB_PASSWORD=${KEYCLOAK_DB_PW}
- DB_USER=keycloak
- PROXY_ADDRESS_FORWARDING=true
ports:
- 127.0.0.1:8081:8080
webhooks:
build: "./dockerfiles/webhooks/"
restart: always
volumes:
- ./webhook:/etc/webhook
- ./build:/target/
tmpfs: /tmp/build
ports:
- 127.0.0.1:9000:9000
command: "-verbose -hooks=/etc/webhook/hooks.json"
mailman-db:
image: mariadb
restart: always
environment:
- MYSQL_DATABASE=mailman
- MYSQL_USER=mailman
- MYSQL_PASSWORD=${MAILMAN_DB_PW}
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
volumes:
- data-mailman:/var/lib/mysql
networks:
- mailman
mailman-core:
image: maxking/mailman-core:latest
restart: always
volumes:
- ./mailman/core:/opt/mailman/
stop_grace_period: 30s
depends_on:
- mailman-db
environment:
- DATABASE_URL=mysql+pymysql://mailman:${MAILMAN_DB_PW}@mailman-db/mailman
- DATABASE_TYPE=mysql
- DATABASE_CLASS=mailman.database.mysql.MySQLDatabase
- HYPERKITTY_API_KEY=${HYPERKITTY_API_KEY}
- SMTP_HOST=mta
- SMTP_PORT=25
networks:
- mailman
mailman-web:
image: maxking/mailman-web:latest
restart: always
depends_on:
- mailman-db
volumes:
- ./mailman/web:/opt/mailman-web-data
environment:
- DATABASE_URL=mysql://mailman:${MAILMAN_DB_PW}@mailman-db/mailman
- DATABASE_TYPE=mysql
- DATABASE_CLASS=mailman.database.mysql.MySQLDatabase
- HYPERKITTY_API_KEY=${HYPERKITTY_API_KEY}
- SECRET_KEY=${DJANGO_KEY}
- SERVE_FROM_DOMAIN=lists.rpg-librarium.de
- MAILMAN_ADMIN_USER=admin
- EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend
- EMAIL_HOST=mta
- EMAIL_PORT=25
ports:
- 127.0.0.1:8091:8000
networks:
- mailman
#- mailman_net_internal
mta:
image: primesign/exim4
restart: always
volumes:
# Sets aliases for exim
- ./mta/aliases:/etc/aliases:ro
# Not sure if exim.conf in git is a good idea
- ./mta/exim.conf:/etc/exim/exim.conf:ro
# DKIM keys certainly are not
- ./mta/dkim:/etc/exim/dkim:ro
- ./mta/mailname:/etc/mailname:ro
# TLS certificates neither
- ./mta/tls:/etc/exim/tls:ro
- spool:/var/spool/exim
# Share sockets with mailman
- ./mailman/core/var:/opt/mailman/core/var
networks:
mailman:
# This was an attempt to make it work with ipv6. We failed.
#ipv4_address: 172.16.238.222
#ipv6_address: 2a03:4000:38:48:ffff::10
ports:
- 0.0.0.0:25:25
#- :::25:25
#- *:25:25
liberation-db:
image: mariadb
restart: always
environment:
- MYSQL_DATABASE=liberation
- MYSQL_USER=liberation
- MYSQL_PASSWORD=${LIBERATION_DB_PW}
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
ports:
- 33061:3306
# Still experimental
liberation:
build: ./liberation
restart: unless-stopped
depends_on:
- liberation-db
ports:
- 127.0.0.1:8042:8080
volumes:
- ./liberation/config/local.toml:/app/config/local.toml:ro
environment:
- LIBERATION_DATABASE_HOSTNAME=liberation-db
- LIBERATION_DATABASE_USERNAME=liberation
- LIBERATION_DATABASE_PASSWORD=${LIBERATION_DB_PW}
- LIBERATION_DATABASE_DATABASE=liberation
# - RUST_LOG=liberation=info,actix_web=info
- RUST_LOG=liberation=info
# entrypoint: /bin/bash
# command: "while 1; do sleep 1000; done"
gitea-db:
image: mariadb
restart: always
environment:
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_PASSWORD=${GITEA_DB_PW}
- MYSQL_RANDOM_ROOT_PASSWORD="yes"
networks:
- gitea
volumes:
- data-gitea:/var/lib/mysql
gitea:
image: gitea/gitea:latest
depends_on:
- gitea-db
environment:
# Parameters here are only used during setup and stored in the config afterwards. Changing them after the container has been initialized won't do anything.
- APP_NAME=RPG Librarium Aachen e.V.
- RUN_MODE=prod
- USER_UID=973
- USER_GIT=973
- DB_TYPE=mysql
- DB_HOST=gitea-db:3306
- DB_NAME=gitea
- DB_USER=gitea
- DB_PASSWD=${GITEA_DB_PW}
- SSH_DOMAIN=gitea.rpg-librarium.de
- SSH_LISTEN_PORT=222
- SSH_PORT=22
- HTTP_PORT=3000
- ROOT_URL=https://gitea.rpg-librarium.de
- DISABLE_REGISTRATION=false
# The following are not part of the docker config, but must be changed after setup in the app.ini
#- DOMAIN=gitea.rpg-librarium.de
#- ALLOW_ONLY_EXTERNAL_REGISTRATION=true
#- DEFAULT_ALLOW_CREATE_ORGANIZATION=false
#- ENABLE_OPENID_SIGNIN=false
#- ENABLE_OPENID_SIGNUP=false
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
ports:
- "127.0.0.1:8031:3000"
- "222:22"
networks:
mailman:
# This was an attempt to make it work with ipv6. We failed.
# ipam:
# driver: default
# config:
# - subnet: "172.16.238.0/24"
# - subnet: "2a03:4000:38:48:ffff::/80"
gitea:
external: false
volumes:
data-keycloak:
driver: local
data-mailman:
driver: local
data-gitea:
driver: local
spool:
driver: local