Skip to content

Commit

Permalink
fix: gunicorn command to use uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
albertkun committed Nov 21, 2023
1 parent 3e6bf7b commit 7359dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ print(f'export DB_NAME={result.path[1:]}')" > /tmp/env.sh && \
echo "auth_file = /etc/pgbouncer/userlist.txt" >> /etc/pgbouncer/pgbouncer.ini && \
echo "client_login_timeout = 120" >> /etc/pgbouncer/pgbouncer.ini && \
gosu pgbouncer pgbouncer /etc/pgbouncer/pgbouncer.ini & \
exec gunicorn -k uvicorn.workers.UvicornWorker app.main:app --bind 0.0.0.0:80 --workers 2
exec uvicorn app.main:app --host 0.0.0.0 --port 80 --workers 2
EXPOSE 80

0 comments on commit 7359dae

Please sign in to comment.