summaryrefslogtreecommitdiff
path: root/roundcube/compose.yaml
blob: f81b1535ea7f5f84dca40cbe73514c23dd673960 (plain)
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
---
services:
  roundcubedb:
    image: mysql:5.7
    container_name: roundcubedb
    restart: unless-stopped
    volumes:
      - ./db/mysql:/var/lib/mysql
    ports:
      - 10.0.0.1:34010:5432
      - 10.0.0.1:33006:3306
    environment:
      - MYSQL_ROOT_PASSWORD=roundcube-mysql-pw
      - MYSQL_DATABASE=roundcubemail
  roundcubemail:
    image: roundcube/roundcubemail:1.6.9-apache
    container_name: roundcubemail
    restart: unless-stopped
    depends_on:
      - roundcubedb
    links:
      - roundcubedb
    volumes:
      - ./www:/var/www/html
    ports:
      - 10.0.0.1:9001:80
    environment:
      - ROUNDCUBEMAIL_DB_TYPE=mysql
      - ROUNDCUBEMAIL_DB_HOST=roundcubedb
      - ROUNDCUBEMAIL_DB_PASSWORD=roundcube-mysql-pw
      - ROUNDCUBEMAIL_SKIN=elastic
      - ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.adjutor.xyz
      - ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.adjutor.xyz
networks: {}

### Optional: add a full mail server stack to use with Roundcube like https://github.com/docker-mailserver/docker-mailserver
#   mailserver:
#     image: mailserver/docker-mailserver:14.0.0
#     hostname: mail.example.org
#     ...  # for more options see https://github.com/docker-mailserver/docker-mailserver#examples