1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00

update docker Readme

This commit is contained in:
cyril 2016-11-30 21:48:46 +01:00
parent 3fad06c886
commit bb4c3bdd35

View File

@ -124,8 +124,8 @@ Requires=docker.service
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/bin/docker run --rm --name letsencrypt -v "/home/core/fabmanager/log:/var/log/letsencrypt" -v "/home/core/fabmanager/letsencrypt/etc:/etc/letsencrypt" -v "/home/core/fabmanager/letsencrypt/config:/letsencrypt-config" quay.io/letsencrypt/letsencrypt:latest -c "/letsencrypt-config/webroot.ini" certonly ExecStart=/usr/bin/docker run --rm --name letsencrypt -v "/apps/recreanglais/log:/var/log/letsencrypt" -v "/apps/recreanglais/letsencrypt/etc:/etc/letsencrypt" -v "/apps/recreanglais/letsencrypt/config:/letsencrypt-config" quay.io/letsencrypt/letsencrypt:latest -c "/letsencrypt-config/webroot.ini" certonly
ExecStartPost=-/usr/bin/docker restart fabmanager ExecStartPost=-/usr/bin/docker restart fabmanager_nginx_1
``` ```
Create file (with sudo) /etc/systemd/system/letsencrypt.timer with Create file (with sudo) /etc/systemd/system/letsencrypt.timer with
@ -138,6 +138,9 @@ Requires=docker.service
OnCalendar=*-*-1 06:00:00 OnCalendar=*-*-1 06:00:00
Persistent=true Persistent=true
Unit=letsencrypt.service Unit=letsencrypt.service
[Install]
WantedBy=timers.target
``` ```
Then deploy your app and read the "Generate SSL certificate by Letsencrypt" section to complete the installation of the letsencrypt certificate. Then deploy your app and read the "Generate SSL certificate by Letsencrypt" section to complete the installation of the letsencrypt certificate.
@ -277,7 +280,9 @@ Remove your app and Run your app to apply changes
Finally, if everything is ok, start letsencrypt timer to update the certificate every 1st of the month : Finally, if everything is ok, start letsencrypt timer to update the certificate every 1st of the month :
```bash ```bash
sudo systemctl enable letsencrypt.timer
sudo systemctl start letsencrypt.timer sudo systemctl start letsencrypt.timer
(check) sudo systemctl list-timers
``` ```