You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, these are all valid suggestions, and I definitely want to get rid of the ENABLE_X variables any time soon...they have served well for a number of vanilla installations, but it's time to get the Docker setup updated.
Would you be interested to work on it and even open a PR?
+1. Few small things need to be changed to make deploying this more standard:
Env vars for database user and host (currently hard-coded)
Env var for SECRET_KEY (currently hard-coded, which is a security issue actually)
Few more settings in settings.py are strong candidates for env vars. Like PORTAL_NAME, FRONTEND_HOST, EMAIL_* among them.
The change is actually pretty small and I'm happy to work on it. Mostly I'd add os.environ.get in settings.py.
My personal end goal would be to offer MediaCMS on pikapods.com since our users have been asking for it.
Regarding the ENABLE_xx I don't see them as a big issue, if they are optional to use. If someone wishes to run multiple containers for those services, that's fine.
Hey there,
it took me a while to understand the architecture of mediacms. The setup-guide was not working for me in the beginning.
I had to set
ENABLE_UWSGI
toyes
by uncommenting it. Otherwise I got a Bad Gateway from the nginx proxy.I also removed postgres as I use a productive database hosted on a different machine.
for volumes, I only mount logs, media and the deploy-directory, as it contains configuration details.
I would not recommend mount the whole git-repo, as you overwrite the containers code, which makes no sense IMHO.
Also, making the settings.py readonly will lead into error:
When using config-maps in kubernetes i.e., a read-only settings-file would be mandatory.
Maybe change to a yaml file and use pyyaml to manage it. I do this on my python projects aswell.
The text was updated successfully, but these errors were encountered: