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/ config/
.env .env

View File

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

View File

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