Coolify

Run Django/Tailwind with Coolify

Author Photo

Mikael Eklund

· 5 min read
Thumbnail

Normally I would serve Django pages through Kubernetes or a server with Gunicorn and Nginx. On Coolify you can use a docker file but the smartest way is by using Nixpacks. So instead of using Nginx to serve static files I use Whitenoise with Gunicorn so that I can use it with Nixpacks. To do so I add a nixpacks.toml in the root directory of the project.

I have a project ready to deploy: Just git clone https://github.com/psgandalf/django_coolify.git The only added file from a normal setup is the nixpacks.toml that lets Coolify run the server.

#coolify#blog#django#tailwind#htmx#alpine#flowbite
Author Photo

About Mikael Eklund

Mikael Eklund is a Senior it technology specialist. With a passion for technology and programming.