Correct mistake on ports, clarify documentation
My understanding is if you want to access the app on port 3000, you would use `docker run -d -p 3000:8080 ...` for a Docker command. For Docker Compose, it's: ``` nginx_recipes: ports: - 3000:80 ```
This commit is contained in:
parent
54f85196e7
commit
924576c8ba
@ -8,9 +8,9 @@ Please read the instructions/notes on each example carefully and decide if this
|
|||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
The docker image (`vabene1111/recipes`) simply exposes the application on port `8080`.
|
The docker image (`vabene1111/recipes`) simply exposes the application on the container's port `8080`.
|
||||||
|
|
||||||
It can be run and exposed on port 80 using:
|
It can be run and accessed on port 80 using:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker run -d \
|
docker run -d \
|
||||||
@ -61,8 +61,6 @@ services:
|
|||||||
web_recipes:
|
web_recipes:
|
||||||
image: vabene1111/recipes
|
image: vabene1111/recipes
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
|
||||||
- 80:8080
|
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
Reference in New Issue
Block a user