Add docker-compose setup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Luke Murphy 2020-06-30 20:48:47 +02:00
parent ea2501fe05
commit e5d160d359
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 19 additions and 1 deletions

View File

@ -7,7 +7,10 @@ docker-build:
docker-run:
@docker run --rm -p 5000:5000 autonomic/magicapp
compose-run:
@docker-compose -f compose.yml up
docker-publish:
@docker push autonomic/magicapp:v0.1.0
.PHONY: python-run docker-build docker-run docker-publish
.PHONY: python-run docker-build docker-run docker-publish compose-run

View File

@ -18,3 +18,10 @@ $ make python-run
$ make docker-build
$ make docker-run
```
## Go Go Go Yes Docker Compose
```bash
$ pip install "docker-compose>=1.26.0,<2"
$ make compose-run
```

8
compose.yml Normal file
View File

@ -0,0 +1,8 @@
---
version: "3.8"
services:
magic-app:
build: ./
ports:
- "5000:5000"