Updated README.md
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
This commit is contained in:
parent
ba9b73c993
commit
47371a102e
@ -1,7 +1,9 @@
|
|||||||
## Compose sample application
|
## Compose sample application
|
||||||
|
|
||||||
### Python/Flask application
|
### Python/Flask application
|
||||||
|
|
||||||
Project structure:
|
Project structure:
|
||||||
|
|
||||||
```
|
```
|
||||||
.
|
.
|
||||||
├── Dockerfile
|
├── Dockerfile
|
||||||
@ -12,12 +14,22 @@ Project structure:
|
|||||||
```
|
```
|
||||||
|
|
||||||
[_docker-compose.yml_](docker-compose.yml)
|
[_docker-compose.yml_](docker-compose.yml)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
version: '2'
|
||||||
services:
|
services:
|
||||||
web:
|
redis:
|
||||||
build: app
|
image: redislabs/redismod
|
||||||
ports:
|
ports:
|
||||||
- '5000:5000'
|
- '6379:6379'
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- "5000:5000"
|
||||||
|
volumes:
|
||||||
|
- .:/code
|
||||||
|
depends_on:
|
||||||
|
- redis
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploy with docker-compose
|
## Deploy with docker-compose
|
||||||
|
Loading…
Reference in New Issue
Block a user