Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bcg0006 committed May 28, 2024
1 parent c8ccada commit ed26c19
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker-compose-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
environment:
- DB_HOST=db
- DB_NAME=${DB_NAME}
- DB_USER=db_user
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
- SECRET_KEY=${DJANGO_SECRET_KEY}
- ALLOWED_HOSTS=${DJANGO_ALLOWED_HOSTS}
Expand All @@ -22,7 +22,7 @@ services:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=db_user
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}

proxy:
Expand Down
4 changes: 2 additions & 2 deletions proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM nginxinc/nginx-unprivileged:1-alpine
LABEL maintainer="bruno"
LABEL maintainer="bruno.com"

COPY ./default.conf.tpl /etc/nginx/default.conf.tpl
COPY ./uwsgi_params /etc/nginx/uswgi_params
COPY ./uwsgi_params /etc/nginx/uwsgi_params
COPY ./run.sh /run.sh

ENV LISTEN_PORT=8000
Expand Down
2 changes: 1 addition & 1 deletion proxy/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

envsubst < /etc/nginx/default.conf.tpl > /etc/nginx.conf.d/default.conf
envsubst < /etc/nginx/default.conf.tpl > /etc/nginx/conf.d/default.conf
nginx -g 'daemon off;'
2 changes: 1 addition & 1 deletion scripts/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ python manage.py wait_for_db
python manage.py collectstatic --noinput
python manage.py migrate

uswgi --socket :9000 --workers 4 --master --enable-threads --module app.wsgi
uwsgi --socket :9000 --workers 4 --master --enable-threads --module app.wsgi

0 comments on commit ed26c19

Please sign in to comment.