Browse Source

Make docker compose work again

master
Joshua Rubingh 1 year ago
parent
commit
d8eb05fcae
  1. 3
      docker-compose.yaml
  2. 4
      docker/Dockerfile.tusd
  3. 4
      nginx/tus.vhost.conf

3
docker-compose.yaml

@ -9,7 +9,6 @@ services: @@ -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: @@ -24,8 +23,6 @@ services:
restart: always
ports:
- 1080:80
depends_on:
- portal
volumes:
uploads:

4
docker/Dockerfile.tusd

@ -36,6 +36,4 @@ RUN mkdir -p hooks/log/ @@ -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

4
nginx/tus.vhost.conf

@ -76,6 +76,8 @@ server { @@ -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 { @@ -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