container-server/services/roundcube/docker-compose.yml

56 lines
1.9 KiB
YAML

version: "3.7"
# https://hub.docker.com/r/roundcube/roundcubemail
# https://github.com/roundcube/roundcubemail-docker
# https://github.com/roundcube/roundcubemail/wiki/Configuration
# https://github.com/roundcube/roundcubemail/blob/master/plugins/managesieve/config.inc.php.dist
# install carddav plugin for use with nextcloud adressbook
# docker exec -it roundcube composer require roundcube/carddav --update-no-dev
# https://repo.packagist.org/packages/roundcube/carddav
networks:
roundcube:
services:
roundcube:
image: roundcube/roundcubemail:1.6.x-apache
container_name: roundcube
restart: "${RESTART:-no}"
hostname: roundcube
domainname: ${BASE_DOMAIN}
environment:
- BASE_DOMAIN=${BASE_DOMAIN}
- ROUNDCUBEMAIL_DB_TYPE=pgsql
- ROUNDCUBEMAIL_DB_HOST=pg-roundcube
- ROUNDCUBEMAIL_DB_NAME=roundcube
- ROUNDCUBEMAIL_DB_USER=roundcube
- ROUNDCUBEMAIL_DB_PASSWORD=${ROUNDCUBE_PG_PWD:-password}
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.${BASE_DOMAIN}
- ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.${BASE_DOMAIN}
- ROUNDCUBEMAIL_PLUGINS=archive,zipdownload,managesieve,carddav,identity_select
- ROUNDCUBEMAIL_SKIN=elastic
volumes:
- ./roundcube/config:/var/roundcube/config
- ${BASE_DIR:-/srv}/roundcube/www:/var/www/html
# Skip tls cert verification. DO NOT USE IN PROD!
- ./roundcube/skip-ssl.php:/var/roundcube/config/skip-ssl.php
depends_on:
- pg-roundcube
networks:
- proxy
- mail
- roundcube
pg-roundcube:
image: postgres:${POSTGRES_VERSION}-alpine
container_name: pg-roundcube
restart: "${RESTART:-no}"
environment:
- POSTGRES_DB=roundcube
- POSTGRES_USER=roundcube
- POSTGRES_PASSWORD=${ROUNDCUBE_PG_PWD:-password}
volumes:
- ${BASE_DIR:-/srv}/roundcube/psql:/var/lib/postgresql/data
networks:
- roundcube