Add roundcube

pull/1/head
Davide Polonio 2020-07-14 09:55:23 +00:00
parent 2b82a0dc87
commit d2b76d1b11
3 changed files with 43 additions and 14 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
env-mailserver
env-*
config/
.env

View File

@ -1,10 +1,11 @@
version: '2'
version: '3.7'
services:
mail:
image: tvial/docker-mailserver:latest
image: tvial/docker-mailserver:release-v7.0.0
hostname: ${HOSTNAME}
domainname: ${DOMAINNAME}
container_name: ${CONTAINER_NAME}
restart: always
ports:
- "25:25"
- "143:143"
@ -22,7 +23,30 @@ services:
cap_add:
- NET_ADMIN
- SYS_PTRACE
networks:
- internal
roundcubedb:
image: postgres:9.6-alpine
restart: always
env_file:
- .env
- env-roundcube
networks:
- internal
roundcube:
image: roundcube/roundcubemail:1.4.7-apache
restart: always
depends_on:
- mail
- roundcubedb
env_file:
- .env
- env-roundcube
networks:
- proxy
- internal
volumes:
maildata:
@ -49,3 +73,8 @@ volumes:
type: none
o: bind
device: "/srv/docker/reverse_proxy/certs/mail.poldebra.me"
networks:
proxy:
external: true
internal:

View File

@ -27,17 +27,17 @@ services:
networks:
- proxy
web:
image: nginx
environment:
- NGINX_HOST=mail.poldebra.me
- NGINX_PORT=80
- VIRTUAL_HOST=mail.poldebra.me
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=mail.poldebra.me
- LETSENCRYPT_EMAIL=poloniodavide@gmail.com
networks:
- proxy
# web:
# image: nginx
# environment:
# - NGINX_HOST=mail.poldebra.me
# - NGINX_PORT=80
# - VIRTUAL_HOST=mail.poldebra.me
# - VIRTUAL_PORT=80
# - LETSENCRYPT_HOST=mail.poldebra.me
# - LETSENCRYPT_EMAIL=poloniodavide@gmail.com
# networks:
# - proxy
volumes:
nginx_cert: