-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (53 loc) · 1.11 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
version: "3.3"
services:
db:
image: mongo:latest
environment:
- MONGO_DATA_DIR=/data/db
- MONGO_LOG_DIR=/dev/null
volumes:
- cm-db-data:/data/db
ports:
- 27017:27017
command: mongod --smallfiles --logpath=/dev/null # --quiet
cm-master:
build:
context: .
command: ["python", '-O', "bin/cm_master.py"]
expose:
- "33610"
- "33620"
configs:
- source: cm-config
target: /app/config/cloud-mailing.ini
depends_on:
- db
cm-satellite:
build:
context: .
command: ["python", '-O', "bin/cm_satellite.py"]
depends_on:
- db
- cm-master
configs:
- source: cm-config
target: /app/config/cloud-mailing.ini
deploy:
mode: replicated
replicas: 3
cm-smtpd:
build:
context: .
command: ["python", '-O', "bin/cm_smtpd.py"]
ports:
- "25:25"
configs:
- source: cm-config
target: /app/config/cloud-mailing.ini
depends_on:
- db
configs:
cm-config:
file: deployment/docker/config/cloud-mailing.ini
volumes:
cm-db-data: