Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docker/prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,8 @@ COPY --from=builder /opt/app/static /opt/app/static
# Copy the project into the image
COPY ./ ./

# Expose the port gunicorn is running on for other Docker containers.
EXPOSE 8000

# Run entrypoint.sh.
ENTRYPOINT ["/opt/app/docker/prod/entrypoint.sh"]
2 changes: 1 addition & 1 deletion docker/prod/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ python manage.py clear_cache --cache=default
python manage.py sync_roles

# Start gunicorn server.
gunicorn hypha.wsgi:application --env DJANGO_SETTINGS_MODULE=hypha.settings.production --threads 3 --reload --bind 0.0.0.0:9001
gunicorn hypha.wsgi:application --env DJANGO_SETTINGS_MODULE=hypha.settings.production --worker-tmp-dir /dev/shm --workers=2 --threads=4 --worker-class=gthread --bind 0.0.0.0:8000

exec "$@"
Loading