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.