mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-25 18:28:07 +02:00
align nginx-nodejs-redis README content with compose.yaml file
Signed-off-by: Brennan <BrennanArvo@gmail.com>
This commit is contained in:
parent
e6b1d2755f
commit
cfd1d7eefe
1 changed files with 5 additions and 4 deletions
|
@ -21,7 +21,8 @@ Project structure:
|
|||
```
|
||||
[_compose.yaml_](compose.yaml)
|
||||
```
|
||||
redis:
|
||||
services:
|
||||
redis:
|
||||
image: 'redislabs/redismod'
|
||||
ports:
|
||||
- '6379:6379'
|
||||
|
@ -40,10 +41,10 @@ redis:
|
|||
nginx:
|
||||
build: ./nginx
|
||||
ports:
|
||||
- '80:80'
|
||||
- '80:80'
|
||||
depends_on:
|
||||
- web1
|
||||
- web2
|
||||
- web1
|
||||
- web2
|
||||
```
|
||||
The compose file defines an application with four services `redis`, `nginx`, `web1` and `web2`.
|
||||
When deploying the application, docker compose maps port 80 of the nginx service container to port 80 of the host as specified in the file.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue