-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml-template
36 lines (36 loc) · 1.16 KB
/
docker-compose.yml-template
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
version: '2'
services:
mta:
##################################################
# BUILD section
##################################################
build:
context: ./build
dockerfile: Dockerfile
args:
BUILD_TZ: Europe/Berlin
WEBPROC_VER: 0.1.9
##################################################
# RUN section
##################################################
image: unimock/mta-docker:0.4.1
container_name: mta
restart: unless-stopped
hostname: myhost
domainname: test.com
#cap_add:
# - NET_ADMIN # fail2ban (iptables)
volumes:
- /Docker/docker_config/config/certbot/etc/:/etc/mycerts
- ./service:/service # service volume for overwrites (ovm) and migration (mig)
- ./data:/volume/data
environment:
- DISABLE_OPENDKIM=1
- DISABLE_OPENMARC=1
# webproc postfix ssh postfix rsyslog cron fail2ban clamav-daemon amavis spamassassin
- DISABLED_SERVICES=webproc fail2ban clamav-milter ssh
ports:
- "25:25" # smtp
- "587:587" # submission
#- "8080:8080" # webproc
#- "2345:22" # sshd