forked from Mailtrain-org/mailtrain
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
86 lines (79 loc) · 1.81 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
version: '3'
services:
mysql:
image: mysql:latest
environment:
- MYSQL_ROOT_PASSWORD=mailtrain
- MYSQL_DATABASE=mailtrain
- MYSQL_USER=mailtrain
- MYSQL_PASSWORD=mailtrain
volumes:
- mysql-data:/var/lib/mysql
ports:
- 3306:3306
deploy:
resources:
limits:
cpus: "0.5"
memory: "500M"
redis:
image: redis:7
volumes:
- redis-data:/data
ports:
- 6379:6379
deploy:
resources:
limits:
cpus: "0.5"
memory: "1G"
mongo:
image: mongo:6
volumes:
- mongo-data:/data/db
ports:
- 27017:27017
deploy:
resources:
limits:
cpus: "0.5"
memory: "1G"
mailtrain:
image: highcanfly/mailtrain:latest
#build: .
ports:
- "3000:3000"
- "3003:3003"
- "3004:3004"
volumes:
- mailtrain-files:/app/server/files
environment:
- URL_BASE_TRUSTED=$URL_BASE_TRUSTED
- URL_BASE_SANDBOX=$URL_BASE_SANDBOX
- URL_BASE_PUBLIC=$URL_BASE_PUBLIC
- ADMIN_PASSWORD=$ADMIN_PASSWORD
- DEFAULT_LANGUAGE=$DEFAULT_LANGUAGE
- ENABLED_LANGUAGE=$ENABLED_LANGUAGE
- WWW_PROXY=$WWW_PROXY
- REDIS_HOST=$REDIS_HOST
- CLOUDFLARE_API_KEY=$CLOUDFLARE_API_KEY
- CLOUDFLARE_ZONE_ID=$CLOUDFLARE_ZONE_ID
- CLOUDFLARE_DNS_RECORDS=$CLOUDFLARE_DNS_RECORDS
- S3_ACCESS_KEY=$S3_ACCESS_KEY
- S3_SECRET_KEY=$S3_SECRET_KEY
- S3_BUCKET=$S3_BUCKET
- S3_ENDPOINT=$S3_ENDPOINT
- S3_PATH=$S3_PATH
- INIT_FROM_S3=$INIT_FROM_S3
- MYSQL_ROOT_PASSWORD=mailtrain
- MYSQL_HOST=mysql
deploy:
resources:
limits:
cpus: "1"
memory: "4G"
volumes:
mysql-data:
redis-data:
mongo-data:
mailtrain-files: