Nginx / Gunicorn 의 역할 python manage.py runserver 는 개발용 서버이기 때문에 디버깅이 찍히고 대량의 트래픽, static 파일들을 서빙하는데에는 문제가 있다. 따라서 배포를 할때는 runserver 대신 nginx 서버와 연동이 필요하다. nginx 와 django 연결을 가능케 하는게 gunicorn(웹서버게이트웨이인터페이스) 이다. gunicorn 연결하기 1) 배포용 docker-compose 만들기 docker-compose.prod.yaml 파일 생성 2) gunicorn 설치 pip install gunicorn 3) freeze pip freeze > requirements.txt 4) docker-compose.prod.yaml 작성 command: g..