- docker(18.09)
- docker-compose(1.23.2)
- ubuntu16.06
- python
- uwsgi
- flask
- nginx
- nginx configurations
- uwsgi ini file
uwsgi가 nginx와 flask를 연결해주는 역할을 하는데, 그 때 uwsgi는 ini파일을 참고하여 socket파일(webserver.sock)을 생성한다. 따라서 해당 socket파일을 볼륨을 떠주고 이 볼륨을 nginx가 볼 수 있게끔 구성하였다.
$ docker build -f Dockerfile.nginx -t hidekuma-nginx .
$ docker build -t hidekuma-uwsgi .
$ docker-compose up -d
So you can see the directory ('socket'). Docker make socker directory if docker run. And you can change socket`s directory path if you want.(volume config)
$ docker-compose down