Skip to content

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?

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