Skip to content

Commit

Permalink
port 8080 is actually port 80 (docker#123)
Browse files Browse the repository at this point in the history
Signed-off-by: Kenny Tordeurs <ktordeur@redhat.com>

Co-authored-by: Kenny Tordeurs <ktordeur@redhat.com>
  • Loading branch information
pipopopo and Kenny Tordeurs authored Apr 6, 2021
1 parent 4480b64 commit 9fa795e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nginx-flask-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
...
```
The compose file defines an application with three services `proxy`, `backend` and `db`.
When deploying the application, docker-compose maps port 80 of the proxy service container to port 8080 of the host as specified in the file.
When deploying the application, docker-compose maps port 80 of the proxy service container to port 80 of the host as specified in the file.
Make sure port 80 on the host is not already being in use.

## Deploy with docker-compose
Expand All @@ -52,7 +52,7 @@ Listing containers must show three containers running and the port mapping as be
```
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c2c703b66b19 nginx-flask-mysql_proxy "nginx -g 'daemon of…" 39 seconds ago Up 38 seconds 0.0.0.0:8080->80/tcp nginx-flask-mysql_proxy_1
c2c703b66b19 nginx-flask-mysql_proxy "nginx -g 'daemon of…" 39 seconds ago Up 38 seconds 0.0.0.0:80->80/tcp nginx-flask-mysql_proxy_1
2b8a21508c3c nginx-flask-mysql_backend "/bin/sh -c 'flask r…" 9 minutes ago Up 38 seconds 0.0.0.0:5000->5000/tcp nginx-flask-mysql_backend_1
0e6a96ea2028 mysql:8.0.19 "docker-entrypoint.s…" 9 minutes ago Up 38 seconds 3306/tcp, 33060/tcp nginx-flask-mysql_db_1
Expand All @@ -61,7 +61,7 @@ c2c703b66b19 nginx-flask-mysql_proxy "nginx -g 'daemon of…" 39 se

After the application starts, navigate to `http://localhost:80` in your web browser or run:
```
$ curl localhost:8080
$ curl localhost:80
<div>Blog post #1</div><div>Blog post #2</div><div>Blog post #3</div><div>Blog post #4</div>
```

Expand Down

0 comments on commit 9fa795e

Please sign in to comment.