Fix default port mapping and indentation

Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
Anca Iordache
2020-03-24 00:36:46 +01:00
parent dc1bb13dce
commit 77c6920a83
20 changed files with 111 additions and 108 deletions

View File

@@ -53,8 +53,8 @@ Creating nginx-flask-mongo_web_1 ... done
Listing containers must show two containers running and the port mapping as below:
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0f4ebe686ff nginx "/bin/bash -c 'envsu…" About a minute ago Up About a minute 0.0.0.0:8080->80/tcp nginx-flask-mongo_web_1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0f4ebe686ff nginx "/bin/bash -c 'envsu…" About a minute ago Up About a minute 0.0.0.0:80->80/tcp nginx-flask-mongo_web_1
dba87a080821 nginx-flask-mongo_backend "./server.py" About a minute ago Up About a minute nginx-flask-mongo_backend_1
d7eea5481c77 mongo "docker-entrypoint.s…" About a minute ago Up About a minute 27017/tcp nginx-flask-mongo_mongo_1
```

View File

@@ -8,15 +8,15 @@ services:
- FLASK_SERVER_ADDR=backend:9091
command: /bin/bash -c "envsubst < /tmp/nginx.conf > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
ports:
- 8080:80
- 80:80
depends_on:
- backend
- backend
backend:
build: flask
environment:
- FLASK_SERVER_PORT=9091
- FLASK_SERVER_PORT=9091
volumes:
- ./flask:/src
- ./flask:/src
depends_on:
- mongo
mongo: