mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
Nginx/Node/Redis and Flask/Redis Compose example (#222)
* Added Node, Nginx and Redis Project * Added Flask/Redis
This commit is contained in:
parent
05095bbe0d
commit
04f8c9ca12
15 changed files with 727 additions and 2 deletions
27
nginx-nodejs-redis/docker-compose.yml
Normal file
27
nginx-nodejs-redis/docker-compose.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
|
||||
services:
|
||||
redis:
|
||||
image: 'redislabs/redismod'
|
||||
ports:
|
||||
- '6379:6379'
|
||||
web1:
|
||||
restart: on-failure
|
||||
build: ./web
|
||||
hostname: web1
|
||||
ports:
|
||||
- '81:5000'
|
||||
web2:
|
||||
restart: on-failure
|
||||
build: ./web
|
||||
hostname: 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