mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 02:38:07 +02:00
Added Nginx, Node and Redis project
This commit is contained in:
parent
6531426a96
commit
22c1733e20
12 changed files with 183 additions and 0 deletions
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
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue