zeug/docker-compose-examples/roundcubemail/docker-compose.yaml

56 lines
1.7 KiB
YAML
Raw Normal View History

version: '3.3'
volumes:
db_data:
roundcube-temp:
services:
db:
image: mariadb:10.6
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ******
MYSQL_DATABASE: roundcube
MYSQL_USER: roundcube
MYSQL_PASSWORD: ******
roundcubemail:
depends_on:
- db
image: roundcube/roundcubemail
volumes:
- roundcube-temp:/tmp/roundcube-temp
restart: always
environment:
ROUNDCUBEMAIL_DEFAULT_HOST: ssl://imap.wazong.de
ROUNDCUBEMAIL_DEFAULT_PORT: 993
ROUNDCUBEMAIL_SMTP_SERVER: tls://mail.wazong.de
ROUNDCUBEMAIL_DB_TYPE: mysql
ROUNDCUBEMAIL_DB_HOST: db
ROUNDCUBEMAIL_DB_NAME: roundcube
ROUNDCUBEMAIL_DB_USER: roundcube
ROUNDCUBEMAIL_DB_PASSWORD: ******
networks:
- default
- traefik
labels:
- traefik.enable=true
- traefik.http.routers.roundcube-nyx.rule=HostRegexp(`{host:mail.wazong.de}`)
- traefik.http.routers.roundcube-nyx.entrypoints=pound
- traefik.http.routers.roundcube.rule=HostRegexp(`{host:mail.wazong.de}`)
- traefik.http.routers.roundcube.tls=true
- traefik.http.routers.roundcube.entrypoints=websecure
- traefik.http.services.roundcube.loadbalancer.healthcheck.path=/
- traefik.http.services.roundcube.loadbalancer.healthcheck.interval=120s
- traefik.http.services.roundcube.loadbalancer.healthcheck.hostname=wazong.de
- traefik.http.services.roundcube.loadbalancer.healthcheck.headers.X-Forwarded-Proto=https
- traefik.docker.network=traefik_default
networks:
default:
traefik:
external:
name: traefik_default