forked from uzh-bf/klicker-uzh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
204 lines (189 loc) · 4.62 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
services:
reverse_proxy:
image: docker.io/library/traefik:v2.10
command:
- --api.insecure=true
- --providers.file=true
- --providers.file.filename=/etc/traefik/rules.yaml
- --providers.file.watch=true
- --entrypoints.web.address=:80
ports:
- 8088:80
- 8080:8080
volumes:
- "./util/traefik/rules.yaml:/etc/traefik/rules.yaml"
networks:
- klicker
reverse_proxy_docker:
image: docker.io/library/traefik:v2.10
command:
- --api.insecure=true
- --providers.file=true
- --providers.file.filename=/etc/traefik/rules.yaml
- --providers.file.watch=true
- --entrypoints.web.address=:80
ports:
- 80:80
- 8080:8080
volumes:
- "./util/traefik/rules_docker.yaml:/etc/traefik/rules.yaml"
networks:
- klicker
auth:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/auth:v3
environment:
APP_SECRET: abcd
DATABASE_URL: "postgres://klicker:klicker@postgres:5432/main"
# EDUID_CLIENT_SECRET: ''
# TEAMS_WEBHOOK_URL: ''
ports:
- 3010:3000
networks:
- klicker
frontend_pwa:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/frontend-pwa:v3
environment:
APP_SECRET: abcd
ports:
- 3001:3000
networks:
- klicker
frontend_manage:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/frontend-manage:v3
ports:
- 3002:3000
networks:
- klicker
frontend_control:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/frontend-control:v3
ports:
- 3003:3000
networks:
- klicker
backend:
profiles:
- full
image: ghcr.io/uzh-bf/klicker-uzh/backend-docker:v3
environment:
APP_SECRET: "abcd"
COOKIE_DOMAIN: .klicker.com
CRON_TOKEN: "abcd"
DATABASE_URL: "postgres://klicker:klicker@postgres:5432/klicker"
NOTIFICATION_SUPPORT_MAIL: "[email protected]"
NOTIFICATION_URL: "[email protected]"
REDIS_CACHE_HOST: "redis_cache"
REDIS_CACHE_PASS: ""
REDIS_CACHE_PORT: 6379
REDIS_HOST: "redis_exec"
REDIS_PASS: ""
REDIS_PORT: 6379
# BLOB_STORAGE_ACCESS_KEY: ''
# BLOB_STORAGE_ACCOUNT_NAME: ''
# LISTMONK_TEMPLATE_MIGRATION_REQUEST: ''
# LISTMONK_URL: ''
# LISTMONK_USER: ''
# MIGRATION_SERVICE_BUS_QUEUE_NAME: ''
# NOTIFICATION_SECRET: ''
# REDIS_CACHE_TLS: 'true'
# REDIS_TLS: 'true'
# TEAMS_WEBHOOK_URL: ''
# VAPID_PRIVATE_KEY: ''
# VAPID_PUBLIC_KEY: ''
ports:
- 3000:3000
networks:
- klicker
# main database
postgres:
image: docker.io/library/postgres:15
environment:
POSTGRES_USER: klicker
POSTGRES_PASSWORD: klicker
POSTGRES_DB: klicker-prod
ports:
- 5432:5432
networks:
- klicker
volumes:
- klicker_data:/var/lib/postgresql/data
# redis instance to support session execution
redis_exec:
image: docker.io/library/redis:7
ports:
- 6379:6379
networks:
- klicker
volumes:
- redis_data:/data
# redis instance for page caching and rate limiting
redis_cache:
image: docker.io/library/redis:7
ports:
- 6380:6379
networks:
- klicker
# fake smtp server for catching email during development
mailhog:
image: docker.io/mailhog/mailhog:latest
ports:
- 1025:1025
- 8025:8025
networks:
- klicker
# service for transactional emails and newsletter campaigns
# uses mailhog to send transactional emails during development
listmonk:
image: docker.io/listmonk/listmonk:latest
ports:
- 9000:9000
environment:
- TZ=Europe/Zurich
depends_on:
listmonk_db:
condition: service_healthy
volumes:
- ./util/listmonk-config.toml:/listmonk/config.toml
networks:
- klicker
command: [sh, -c, "yes | ./listmonk --install && ./listmonk"]
listmonk_db:
image: docker.io/library/postgres:13
environment:
- POSTGRES_PASSWORD=listmonk
- POSTGRES_USER=listmonk
- POSTGRES_DB=listmonk
volumes:
- listmonk_data:/var/lib/postgresql/data
networks:
- klicker
healthcheck:
test: ["CMD-SHELL", "pg_isready -U listmonk"]
interval: 10s
timeout: 5s
retries: 6
mongodb:
image: mongo:4.0
environment:
MONGO_INITDB_ROOT_USERNAME: klicker
MONGO_INITDB_ROOT_PASSWORD: klicker
ports:
- 27017:27017
networks:
- klicker
volumes:
- /data/db
networks:
klicker:
driver: bridge
volumes:
listmonk_data:
klicker_data:
redis_data: