forked from postalserver/install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.4 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
services:
web:
image: ${POSTAL_IMAGE}:${POSTAL_VERSION}
command: postal web-server
restart: unless-stopped
network_mode: host
env_file: containers.env
volumes:
- ${POSTAL_CONFIG_DIR}:/config:ro
smtp:
image: ${POSTAL_IMAGE}:${POSTAL_VERSION}
command: postal smtp-server
restart: unless-stopped
network_mode: host
cap_add:
- NET_BIND_SERVICE
env_file: containers.env
volumes:
- ${POSTAL_CONFIG_DIR}:/config:ro
worker:
image: ${POSTAL_IMAGE}:${POSTAL_VERSION}
command: postal worker
restart: unless-stopped
network_mode: host
env_file: containers.env
volumes:
- ${POSTAL_CONFIG_DIR}:/config:ro
deploy:
mode: replicated
replicas: ${POSTAL_WORKERS}
cron:
image: ${POSTAL_IMAGE}:${POSTAL_VERSION}
command: postal cron
restart: unless-stopped
network_mode: host
env_file: containers.env
volumes:
- ${POSTAL_CONFIG_DIR}:/config:ro
requeuer:
image: ${POSTAL_IMAGE}:${POSTAL_VERSION}
command: postal requeuer
restart: unless-stopped
network_mode: host
env_file: containers.env
volumes:
- ${POSTAL_CONFIG_DIR}:/config:ro
runner:
profiles: ["tools"]
image: ${POSTAL_IMAGE}:${POSTAL_VERSION}
command: postal
restart: unless-stopped
network_mode: host
env_file: containers.env
volumes:
- ${POSTAL_CONFIG_DIR}:/config:ro