Added Nginx, Node and Redis project
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
This commit is contained in:
25
nginx-nodejs-redis/docker-compose.yml
Normal file
25
nginx-nodejs-redis/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
redis:
|
||||
image: 'redis:alpine'
|
||||
ports:
|
||||
- '6379:6379'
|
||||
web1:
|
||||
restart: on-failure
|
||||
build: ./web1
|
||||
ports:
|
||||
- '81:5000'
|
||||
web2:
|
||||
restart: on-failure
|
||||
build: ./web2
|
||||
ports:
|
||||
- '82:5000'
|
||||
nginx:
|
||||
build: ./nginx
|
||||
ports:
|
||||
- '80:80'
|
||||
depends_on:
|
||||
- web1
|
||||
- web2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user