1
0
Fork 0
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:
Brennan 2024-01-07 08:04:46 -06:00 committed by GitHub
parent e6b1d2755f
commit cfd1d7eefe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.