File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,5 +63,8 @@ COPY --from=builder /opt/app/static /opt/app/static
6363# Copy the project into the image
6464COPY ./ ./
6565
66+ # Expose the port gunicorn is running on for other Docker containers.
67+ EXPOSE 8000
68+
6669# Run entrypoint.sh.
6770ENTRYPOINT ["/opt/app/docker/prod/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ python manage.py clear_cache --cache=default
77python manage.py sync_roles
88
99# Start gunicorn server.
10- gunicorn hypha.wsgi:application --env DJANGO_SETTINGS_MODULE=hypha.settings.production --threads 3 --reload --bind 0.0.0.0:9001
10+ 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
1111
1212exec " $@ "
You can’t perform that action at this time.
0 commit comments