add roundcube
This commit is contained in:
parent
014f5262f4
commit
f085ffe899
25
common.yaml
25
common.yaml
|
@ -1,21 +1,22 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- hosts: all
|
#- hosts: all
|
||||||
roles:
|
# roles:
|
||||||
- common
|
# - common
|
||||||
|
|
||||||
|
|
||||||
- hosts: mail.0rpheus.net
|
#- hosts: mail.0rpheus.net
|
||||||
gather_facts: false
|
# gather_facts: false
|
||||||
tasks:
|
# tasks:
|
||||||
- name: install docker related packages
|
# - name: install docker related packages
|
||||||
apt:
|
# apt:
|
||||||
name:
|
# name:
|
||||||
- python3-docker
|
# - python3-docker
|
||||||
|
|
||||||
|
|
||||||
- hosts: mail.0rpheus.net
|
- hosts: mail.0rpheus.net
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
roles:
|
roles:
|
||||||
- haproxy
|
# - haproxy
|
||||||
- bitwarden
|
# - bitwarden
|
||||||
|
- roundcube
|
||||||
|
|
|
@ -28,6 +28,9 @@ all:
|
||||||
# https://hub.docker.com/r/vaultwarden/server/tags
|
# https://hub.docker.com/r/vaultwarden/server/tags
|
||||||
bitwarden_version: 1.26.0-alpine
|
bitwarden_version: 1.26.0-alpine
|
||||||
|
|
||||||
|
# https://hub.docker.com/r/roundcube/roundcubemail/tags
|
||||||
|
roudcube_version: 1.6.0-apache
|
||||||
|
|
||||||
certbot_domains:
|
certbot_domains:
|
||||||
- "jabber.0rpheus.net"
|
- "jabber.0rpheus.net"
|
||||||
|
|
||||||
|
@ -39,7 +42,7 @@ all:
|
||||||
seafile.0rpheus.net: seafile
|
seafile.0rpheus.net: seafile
|
||||||
jabber.0rpheus.net: prosody
|
jabber.0rpheus.net: prosody
|
||||||
tt-rss.0rpheus.net: ttrss
|
tt-rss.0rpheus.net: ttrss
|
||||||
mail.0rpheus.net: apache
|
mail.0rpheus.net: roundcube
|
||||||
blog.0rpheus.net: apache
|
blog.0rpheus.net: apache
|
||||||
git.0rpheus.net: gogs
|
git.0rpheus.net: gogs
|
||||||
|
|
||||||
|
@ -53,6 +56,10 @@ all:
|
||||||
server_defs:
|
server_defs:
|
||||||
- "apache 127.0.0.1:8080 check"
|
- "apache 127.0.0.1:8080 check"
|
||||||
|
|
||||||
|
roundcube:
|
||||||
|
server_defs:
|
||||||
|
- "roundcube 127.0.0.1:2090 check"
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
server_defs:
|
server_defs:
|
||||||
- "portainer 10.10.10.2:8181 check"
|
- "portainer 10.10.10.2:8181 check"
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
roudcube_data: /srv/mail.0rpheus.net
|
||||||
|
roudcube_version: 'latest'
|
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: roudcube data
|
||||||
|
file:
|
||||||
|
path: "{{ roudcube_data }}"
|
||||||
|
state: directory
|
||||||
|
mode: 0755
|
||||||
|
|
||||||
|
|
||||||
|
- name: roudcube container
|
||||||
|
docker_container:
|
||||||
|
name: mail.0rpheus.net
|
||||||
|
hostname: roundcube
|
||||||
|
image: "roundcube/roundcubemail:{{ roudcube_version }}"
|
||||||
|
pull: yes
|
||||||
|
restart_policy: always
|
||||||
|
env:
|
||||||
|
ROUNDCUBEMAIL_DB_TYPE: sqlite
|
||||||
|
ROUNDCUBEMAIL_SKIN: elastic
|
||||||
|
ROUNDCUBEMAIL_DEFAULT_HOST: tls://imap.0rpheus.net
|
||||||
|
ROUNDCUBEMAIL_SMTP_SERVER: tls://smtp.0rpheus.net
|
||||||
|
ROUNDCUBEMAIL_PLUGINS: archive,zipdownload,managesieve
|
||||||
|
ROUNDCUBEMAIL_UPLOAD_MAX_FILESIZE: 50M
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:2090:80
|
||||||
|
volumes:
|
||||||
|
- "{{ roudcube_data }}/www:/var/www/html:rw"
|
||||||
|
- "{{ roudcube_data }}/sqlite:/var/roundcube/db:rw"
|
Loading…
Reference in New Issue