docker/roundcube/testing/docker-compose.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

2021-07-20 17:05:55 +02:00
version: "3.8"
services:
app:
build: .
2021-12-12 15:21:32 +01:00
image: rc_test:1.12
2021-07-20 17:05:55 +02:00
restart: unless-stopped
depends_on:
- db
volumes:
- ${DATA_PATH}/app:/var/www/html
- ${DATA_PATH}/enigma:/etc/enigma/gnupg
env_file: secrets/app.secrets
environment:
- ROUNDCUBEMAIL_SKIN=elastic
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://${MAIL_SERVER}
- ROUNDCUBEMAIL_SMTP_SERVER=tls://${MAIL_SERVER}
- ROUNDCUBEMAIL_PLUGINS=archive, zipdownload, enigma, carddav
networks:
- default
- proxy
labels:
- "traefik.enable=true"
- "traefik.docker.network=proxy"
- "traefik.http.middlewares.rctest-redirect-websecure.redirectscheme.scheme=https"
- "traefik.http.routers.rctest-http.middlewares=rctest-redirect-websecure"
- "traefik.http.routers.rctest-http.rule=Host(`${CN}`)"
- "traefik.http.routers.rctest-http.entrypoints=web"
- "traefik.http.routers.rctest-https.rule=Host(`${CN}`)"
- "traefik.http.routers.rctest-https.entrypoints=websecure"
- "traefik.http.routers.rctest-https.tls=true"
- "traefik.http.routers.rctest-https.tls.certresolver=myhttpchallenge"
db:
image: mariadb:10.5
restart: unless-stopped
volumes:
- ${DATA_PATH}/db:/var/lib/mysql
env_file: secrets/db.secrets
networks:
proxy:
external: true