Assuming you use the latest Debian version.
-
Create a
.env.secretsfile at the project root based on.env.secrets.examplecontaining actual secrets -
Install Docker
-
Add this in a new
/etc/docker/daemon.jsonfile, otherwise users with an IPv6 will not get their IP forwarded to Django, due to a Docker limitation:{ "ip6tables": true, "experimental": true } -
Restart Docker with
systemctl restart docker -
Limit the journalctl log size (it can take several GB after months) by editing
/etc/systemd/journald.confand set:[Journal] SystemMaxUse=250Mthen restart it with
systemctl restart systemd-journald -
For Debian >= 12:
apt install rsyslog, otherwise Fail2ban cannot access auth.log. See https://unix.stackexchange.com/a/636689FIXME: Make Fail2ban work with the host journalctl.