mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
init mailu-deploy-letsencrypt
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Let's Encrypt Mailu Deploy
|
||||
OnFailure=systemd-email@%n.service
|
||||
After=nginx.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bash /usr/local/bin/mailu/deploy-letsencrypt-mailu.sh
|
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
cp /etc/letsencrypt/live/{{domain}}/privkey.pem /etc/mailu/certs/key.pem || exit 1
|
||||
cp /etc/letsencrypt/live/{{domain}}/fullchain.pem /etc/mailu/certs/cert.pem || exit 1
|
||||
sudo cp /etc/letsencrypt/live/{{domain}} /etc/mailu/letsencrypt/ || exit 1
|
||||
docker exec mailu_front_1 nginx -s reload
|
@@ -37,9 +37,8 @@ services:
|
||||
- "{{ ip4_address }}:143:143"
|
||||
- "{{ ip4_address }}:993:993"
|
||||
volumes:
|
||||
- "/etc/letsencrypt:/certs/letsencrypt:ro"
|
||||
- "/etc/mailu/overrides/nginx:/overrides"
|
||||
- "front_certs:/certs"
|
||||
- "/etc/mailu/certs:/certs"
|
||||
admin:
|
||||
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.8}
|
||||
restart: always
|
||||
|
Reference in New Issue
Block a user