Multi-hosting Django sites with Docker instances?

I am new to Docker. Is it possible to host Django sites for multiple domains on one Linode by using Docker instances (one per site)?

Would each Docker instance behave as a unique virtual machine requiring one IP per instance or site?

I am familiar with multi-hosting the Apache way but it seems that's not a path for Python/Django sites.

Thanks,

-Martin

2 Replies

You can use docker to host a django site per container, if you are doing this, you may want to consider a reverse proxy frontend such as linuxserver/swag

Thanks.

Would I run the db for each django site in a separate containter (one per site)? Not sure what best practice might be. These are not high volume sites and are unlikely to require expansion to multiple servers, etc.

I ask because I read an article that proposed separating Django and the DB into two containers.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct