-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerize discoreg #4
base: master
Are you sure you want to change the base?
Conversation
Dockerfile
Outdated
ENV PYTHONUNBUFFERED 1 | ||
|
||
WORKDIR /discoreg | ||
EXPOSE 80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll be running this behind nginx, so can we use 8000 (or whatever gunicorn's default port is) here?
requirements.txt
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use something like pip-compile
to retain the separation of top-level and fully pinned requirements? Happy to contribute this change to the PR myself, just want to make sure we don't lose that information and the ability to reasonably upgrade dependencies going forward.
discoreg/discoreg/settings.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably make the database configurable (e.g. with https://github.com/jazzband/dj-database-url) along with this change. In the mean time, I'll likely mount the path to the database as a docker volume to make sure it persists to disk.
First shot at dockerizing discoreg
2 containers can be created