From 3cfc6c3e9c2d6de752bb81ce8fb54cd6a4f3e1e5 Mon Sep 17 00:00:00 2001
From: Thomas Maurice <thomas@maurice.fr>
Date: Wed, 11 Jan 2023 11:11:24 +0100
Subject: [PATCH] Instruction about installing postgres with docker

---
 README.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/README.md b/README.md
index 1fd29d7..fe94b6b 100644
--- a/README.md
+++ b/README.md
@@ -84,6 +84,10 @@ To deploy Synapse and Mastodon, you need to deploy a database server. We are goi
 
 For more details to do this, I refer you to [this link](https://stribny.name/blog/ansible-postgresql/) which will walk you through how to deal with this.
 
+If you are feeling adventurous you can install postgresql using [docker](https://github.com/levonet/ansible-docker-postgres).
+
+Either way, you need to install this on youd DB machine, which should be the one with the least amount of RAM.
+
 ## Create a certificate for our deployments
 
 We need to use a certificate to secure HTTPS communication, both the Mastodon and Matrix protocols require it. This can be done manually for the moment and automated later, as it is not super straightforward. I refer you to the [documentation on certbot + nginx](https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04) I would recommend that you create a `mastodon.<yourdomain>` and a `matrix.<yourdomain>` certificate, then back them up somewhere safe as Letsencrypt has pretty aggressive rate limiting with regard to certificate creations.
-- 
GitLab