Fix default port mapping and indentation
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user