Open ethanopp opened 4 years ago
Hey, sorry for the slow response. I'm afraid I haven't done any deployment on docker with slapdash projects. So am not in the best position to comment there. The advantage of using Apache is that it's less setup (compared to say gunicorn + nginx that's configured for static asset serving), with the potential downside that mod-wsgi can sometimes be a little fiddly to install on some systems.
The advantage of docker, is that only you have to worry about that initial env setup though. And then it just works for everyone. So I guess it really comes down to how much work you want to do setting up your docker image, and what functionality you want people to have working out of the box. I would go with mod-wsgi over gunicorn without nginx, as you're leaving people open to having their sites brought down much more easily under load.
Not sure how useful all that is. Hope it's helpful.
Hey @ned2 - first off thanks for this amazing repo, it has helped me organize my own project substantially.
I'm working on a project that would let users self-host an analytical fitness application: https://github.com/ethanopp/fitly
I'd like to add the ability for the users to be able to deploy via docker, and I currently have it working with the following docker-compose, but saw some benefits in your readme on using the apache prod script instead of an external (gunicorn in this case) server:
where
fitly
is built on the following Dockerfile:Would you happen to have any docs on how to get a docker container stood up which leverages the run-
slug
-prod script in your repo? Also just in general, is it worth it to switch over towards leveraging that approach or given that the users will most likely just be pulling the repo and deploying (not editing prod_settings, etc.), is the above okay?