-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
65 lines (57 loc) · 2.71 KB
/
Copy pathcompose.yaml
File metadata and controls
65 lines (57 loc) · 2.71 KB
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
services:
app:
image: daniellerch/mailist:latest
restart: unless-stopped
mem_limit: 512m
environment:
# Change this according to your database settings
- Database__ConnectionString=Server=db;Port=3306;Database=mailist;User=mailist;Password=mailist;
# Uncomment below if you want to use Mailist in a subfolder like example.com/mailist
#- Hosting__PathBase=/mailist
# Uncomment below if you want to use Mailist behind a reverse proxy like NGINX
#- Hosting__AllowProxies=true
# Change this to your ChurchTools URL
- Hosting__CorsOrigins__0=https://demo.church.tools
# Change this
- Jwt__Issuer=https://mailist.example.org
- Jwt__Audience=https://mailist.example.org
# 256 bit hex string, e.g. generated with `openssl rand -hex 32`
- Jwt__SigningKey=0000deadbeef00000000deadbeef00000000deadbeef00000000deadbeef0000
# Change this according to your ChurchTools instance and user
# See the main README for instructions on how to get a login token and configure permissions
- ChurchTools__Host=example.church.tools
- ChurchTools__LoginToken=DuIojxSyqCIMLf8JXEhQCshetSCZFP2dCuNIzHtgrKxqK13e80MdPY15wjt2jUNpWZzlCpEkJVTxYr6MCx3WZpmY5w8CeiwJbke1lKZ4GfD2jc3niVbiRI66obQtfJH8biXw2HXgZVbgMnK4aMQGOlY7Ssfp8SwyZMki1RoIYNBjWPAGAWyeAD5Dp1cApB74BqoWyziSTIE0EP6DQA8HV7n2IUZCVdgnlQkypcM7YeUTGiex57vdHrfH1foJvwax
# Uncomment these options and fill in your SMTP account
#- EmailDelivery__Enable=true
#- EmailDelivery__SenderAddress=noreply@example.org
#- EmailDelivery__SmtpHost=smtp.example.org
#- EmailDelivery__SmtpUsername=noreply@example.org
#- EmailDelivery__SmtpPassword=4mKrsCOoIUYm4FKumX57
# After configuring email delivery above, you may uncomment these options and fill in your catchall IMAP account
#- EmailRelay__Enable=true
#- EmailRelay__ImapHost=imap.example.org
#- EmailRelay__ImapUsername=catchall@example.org
#- EmailRelay__ImapPassword=RKXMaQWm8k7QKFnmijma
depends_on:
db:
condition: service_healthy
db:
image: mariadb:latest
restart: unless-stopped
mem_limit: 512m
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=mailist
- MYSQL_USER=mailist
- MYSQL_PASSWORD=mailist
volumes:
- ./data/mysql:/var/lib/mysql
# This healthcheck will only work for newly initialized databases with a healthcheck user
# To configure it manually, refer to https://stackoverflow.com/a/76089040/7075733
healthcheck:
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 30s
start_interval: 1s