Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Dockerize discoreg #4

wants to merge 7 commits into from

Conversation

greedo
Copy link

@greedo greedo commented Sep 25, 2023

First shot at dockerizing discoreg

2 containers can be created

  • nextupbot
  • discoreg

Dockerfile Outdated
ENV PYTHONUNBUFFERED 1

WORKDIR /discoreg
EXPOSE 80
Copy link
Member

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
Copy link
Member

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.

Copy link
Member

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.

@greedo greedo requested a review from jonafato October 3, 2023 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants