Make docker compose work again
continuous-integration/drone/push Build is passing Details

master
Joshua Rubingh 2 years ago
parent 580e586d7d
commit d8eb05fcae

@ -9,7 +9,6 @@ services:
build:
context: ./
dockerfile: ./docker/Dockerfile.tusd
# command: gunicorn demo_portal.wsgi:application --bind 0.0.0.0:8000 --workers=4
command: ./startup.sh
volumes:
- uploads:/home/app/web/staticfiles
@ -24,8 +23,6 @@ services:
restart: always
ports:
- 1080:80
depends_on:
- portal
volumes:
uploads:

@ -36,6 +36,4 @@ RUN mkdir -p hooks/log/
RUN chown -R app:app $APP_HOME
# Run as user
USER app:app
ENTRYPOINT ["/home/app/web/startup.sh"]
USER app:app

@ -76,6 +76,8 @@ server {
proxy_set_header X-Forwarded-Host $host;
# Make sure to hardcoded set to https. As kubernetes is proxying based on http from the ingress
# Else TUSD will redirect incorrect http hosts
# https://github.com/tus/tusd/blob/master/docs/faq.md#can-i-run-tusd-behind-a-reverse-proxy
# https://github.com/tus/tusd/blob/master/examples/nginx.conf
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://localhost:1080;
@ -99,6 +101,8 @@ server {
proxy_set_header X-Forwarded-Host $host;
# Make sure to hardcoded set to https. As kubernetes is proxying based on http from the ingress
# Else TUSD will redirect incorrect http hosts
# https://github.com/tus/tusd/blob/master/docs/faq.md#can-i-run-tusd-behind-a-reverse-proxy
# https://github.com/tus/tusd/blob/master/examples/nginx.conf
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://localhost:1080;

Loading…
Cancel
Save