使用 Docker-compose.yml 用 command 启动 Gunicorn,同时启动 Nginx,但是 Gunicorn 的地址无法被 Nginx
正常代理
问题例子
Docker-compose.yml
version: "3"
services:
app:
build: ./app
command: gunicorn -w 4 -b :5000 server:app
expose:
- 5000
nginx:
build: ./nginx
ports:
- 80:80
links:
- app
nginx.conf
server {
listen