You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To deploy the latest version on a virtual machine with docker compose installed,
9
21
download [docker-compose.yml](https://raw.githubusercontent.com/ssciwr/mondey/main/docker-compose.yml), then do
10
22
11
23
```
12
-
sudo docker compose pull
13
-
sudo docker compose up -d
24
+
sudo docker compose pull && sudo docker compose up -d && sudo docker system prune -af
14
25
```
15
26
16
-
The location of the database directory, image files directory, SSL keys and secret key should be set
17
-
either in env vars or in a file `.env` in the same location as the docker-compose.yml.
27
+
The same command can be used to update the running website to use the latest available docker images.
18
28
19
-
TODO: document these options
20
-
21
-
The current status of the containers can be checked with
29
+
The current status of the running containers can be checked with
22
30
23
31
```
24
32
sudo docker compose ps
25
33
sudo docker compose logs
26
34
```
27
35
28
-
To update the running website to the latest version:
36
+
### SSL certificates
37
+
38
+
To generate SSL certificates for the domain `mondey.lkeegan.dev` from [Let's Encrypt](https://letsencrypt.org/) using [Certbot](https://certbot.eff.org/):
29
39
30
40
```
31
-
sudo docker compose pull && sudo docker compose up -d && sudo docker system prune -af
The certificates needs renewing every three months, which can be done manually using the same command. To automatically renew once a week you can use cron, e.g. `sudo crontab -e`, then add the following line:
0 commit comments