mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-20 07:48:06 +02:00
Updated README.md
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
This commit is contained in:
parent
ba9b73c993
commit
47371a102e
1 changed files with 17 additions and 5 deletions
|
@ -1,7 +1,9 @@
|
|||
## Compose sample application
|
||||
|
||||
### Python/Flask application
|
||||
|
||||
Project structure:
|
||||
|
||||
```
|
||||
.
|
||||
├── Dockerfile
|
||||
|
@ -12,12 +14,22 @@ Project structure:
|
|||
```
|
||||
|
||||
[_docker-compose.yml_](docker-compose.yml)
|
||||
|
||||
```
|
||||
services:
|
||||
web:
|
||||
build: app
|
||||
ports:
|
||||
- '5000:5000'
|
||||
version: '2'
|
||||
services:
|
||||
redis:
|
||||
image: redislabs/redismod
|
||||
ports:
|
||||
- '6379:6379'
|
||||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "5000:5000"
|
||||
volumes:
|
||||
- .:/code
|
||||
depends_on:
|
||||
- redis
|
||||
```
|
||||
|
||||
## Deploy with docker-compose
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue