Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

WIP: add ansible docker config #29

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

WIP: add ansible docker config #29

wants to merge 2 commits into from

Conversation

thde
Copy link

@thde thde commented Aug 28, 2019

This was lying around for quite some time. I was finally able to push it. This is a simple setup on purpose as it should be easy to maintain.

I was able to deploy everything successfully to the point where the Django production config differs from the Dev setup. To run it locally the following variables have to be configured:

postgres_host
postgres_user
postgres_password
postgres_database
django_secret_key
django_debug
django_mail_host
django_mail_port
django_mail_host_user
django_mail_host_password
django_mail_tls

So the current TODO is only to figure out which ENV vars need to be set so that the production Docker image successfully starts 😄 . Sadly I don't know if I'm able to finish this up. So feel free to grab the task.

I used Traefik as the reverse proxy as the handling with Docker is easy and it's able to handle Let's Encrypt certificates automatically.

Postgres also runs as a container because I just think the setup is easier this way.

We probably also want some basic Backup jobs to dump the database from time to time.

@The-Compiler
Copy link
Member

Thanks, @thde! This week, I got a new deployment up and running - in the end, we decided against using Traefik because we'd need nginx for static files anyways. While this PR was useful as an inspiration, I decided to not use it directly I'm afraid.

I'm now going to archive this repository, just wanted to let you know that I did look at your changes and not just outright ignore them 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants