-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (41 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
42 lines (41 loc) · 1.1 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
version: '3'
services:
mailserver:
image: docker.io/mailserver/docker-mailserver:latest
hostname: ${HOSTNAME}
domainname: ${DOMAINNAME}
container_name: ${CONTAINER_NAME}
env_file: mailserver.env
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
- maildata:/var/mail
- mailstate:/var/mail-state
- maillogs:/var/log/mail
- /etc/localtime:/etc/localtime:ro
- ./config/:/tmp/docker-mailserver/${SELINUX_LABEL}
restart: always
stop_grace_period: 1m
cap_add: [ "NET_ADMIN", "SYS_PTRACE" ]
roundcube:
image: roundcube/roundcubemail
ports:
- "9000:80"
environment:
- ROUNDCUBEMAIL_DEFAULT_HOST=${CONTAINER_NAME}
- ROUNDCUBEMAIL_SMTP_SERVER=tls://${CONTAINER_NAME}
- ROUNDCUBEMAIL_SMTP_PORT=587
depends_on:
- mailserver
links:
- mailserver
volumes:
- "./config_roundcube/defaults.inc.php:/var/www/html/config/defaults.inc.php"
volumes:
maildata:
mailstate:
maillogs: