Martin Paul Eve bio photo

Martin Paul Eve

Professor of Literature, Technology and Publishing at Birkbeck, University of London and Technical Lead of Knowledge Commons at MESH Research, Michigan State University

Email (BBK) Email (MSU) Email (Personal) Books Bluesky Github Stackoverflow KC Works Institutional Repo Hypothes.is ORCID ID  ORCID iD Wikipedia Pictures for Re-Use

There are several tutorials out there on how to get Django apps dockerized and deployed onto AWS Fargate. None of them worked for me. So I have put together a project demonstrating how to do this. It’s available on Github.

The scenario I wanted to create was something like this:

Infrastructure

I wanted the infrastructure to have:

  • Load balancing
  • SSL (with termination at the load balancer)
  • Serverless auto-scaling
  • Serverless database
  • Containerized Django

There were loads of “gotchas” along the way. For instance, getting two containers to run and interact with each other on the same network interface. The fact that you can’t use docker-compose.yml “commands” to start the container. The load balancer wouldn’t allow an HTTP target group for an HTTPS listener in extant modules. Getting the database to be accessible proved to be a networking pain. Setting the database password to a randomly generated string didn’t work. The list goes on.

In any case, the project now seems to work!