Fix stuff to get mailu to work.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-05 15:10:15 +01:00
parent 02aa4e185f
commit a43c52e71e
2 changed files with 18 additions and 5 deletions

View file

@ -22,6 +22,21 @@
src: mailu.env.j2 src: mailu.env.j2
dest: "{{ mailu.volume_folder}}/mailu.env" dest: "{{ mailu.volume_folder}}/mailu.env"
- name: hard link to Let's Encrypt TLS certificate
file:
src: "{{ nginx.volume_folder }}/certs/{{ mailu.domain }}/fullchain.pem"
dest: "{{ mailu.volume_folder }}/certs/cert.pem"
state: hard
force: yes
- name: hard link to Let's Encrypt TLS key
file:
src: "{{ nginx.volume_folder }}/certs/{{ mailu.domain }}/key.pem"
dest: "{{ mailu.volume_folder }}/certs/key.pem"
state: hard
force: yes
- name: run mail server containers - name: run mail server containers
docker_service: docker_service:
project_name: mail_server project_name: mail_server
@ -35,15 +50,13 @@
volumes: volumes:
- "{{ mailu.volume_folder }}/redis:/data" - "{{ mailu.volume_folder }}/redis:/data"
postgresql: database:
image: mailu/postgresql:{{ mailu.version }} image: mailu/postgresql:{{ mailu.version }}
restart: always restart: always
env_file: "{{ mailu.volume_folder}}/mailu.env" env_file: "{{ mailu.volume_folder}}/mailu.env"
volumes: volumes:
- "{{ mailu.volume_folder }}/data/psql_db:/data" - "{{ mailu.volume_folder }}/data/psql_db:/data"
- "{{ mailu.volume_folder }}/data/psql_backup:/backup" - "{{ mailu.volume_folder }}/data/psql_backup:/backup"
networks:
- name: mailu
front: front:
image: mailu/nginx:{{ mailu.version }} image: mailu/nginx:{{ mailu.version }}

View file

@ -32,13 +32,13 @@ SUBNET={{ mailu.subnet }}
DOMAIN=data.coop DOMAIN=data.coop
# Hostnames for this server, separated with comas # Hostnames for this server, separated with comas
HOSTNAMES=nem.li,kva.li HOSTNAMES=mail.data.coop
# Postmaster local part (will append the main mail domain) # Postmaster local part (will append the main mail domain)
POSTMASTER=admin POSTMASTER=admin
# Choose how secure connections will behave (value: letsencrypt, cert, notls, mail, mail-letsencrypt) # Choose how secure connections will behave (value: letsencrypt, cert, notls, mail, mail-letsencrypt)
TLS_FLAVOR=letsencrypt TLS_FLAVOR=mail
# Authentication rate limit (per source IP address) # Authentication rate limit (per source IP address)
AUTH_RATELIMIT=10/minute;1000/hour AUTH_RATELIMIT=10/minute;1000/hour