Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noripyt/docker-compose-django
https://github.com/noripyt/docker-compose-django
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/noripyt/docker-compose-django
- Owner: noripyt
- Created: 2024-06-15T13:35:23.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-11-05T23:16:54.000Z (about 2 months ago)
- Last Synced: 2024-11-05T23:19:33.256Z (about 2 months ago)
- Language: Python
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Common to all installations
Assuming you use the latest Debian version.
- Create a `.env.secrets` file at the project root based on `.env.secrets.example` containing actual secrets
- Install Docker
- Add this in a new `/etc/docker/daemon.json` file, otherwise users with an IPv6
will not get their IP forwarded to Django, due to a Docker limitation:```json
{
"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/journalctl.conf` and set:```
[Journal]
SystemMaxUse=250M
```
then 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/636689
> FIXME: Make Fail2ban work with the host journalctl.