Add docker-compose setup
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ea2501fe05
commit
e5d160d359
5
Makefile
5
Makefile
@ -7,7 +7,10 @@ docker-build:
|
|||||||
docker-run:
|
docker-run:
|
||||||
@docker run --rm -p 5000:5000 autonomic/magicapp
|
@docker run --rm -p 5000:5000 autonomic/magicapp
|
||||||
|
|
||||||
|
compose-run:
|
||||||
|
@docker-compose -f compose.yml up
|
||||||
|
|
||||||
docker-publish:
|
docker-publish:
|
||||||
@docker push autonomic/magicapp:v0.1.0
|
@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
|
||||||
|
@ -18,3 +18,10 @@ $ make python-run
|
|||||||
$ make docker-build
|
$ make docker-build
|
||||||
$ make docker-run
|
$ 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
8
compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
version: "3.8"
|
||||||
|
|
||||||
|
services:
|
||||||
|
magic-app:
|
||||||
|
build: ./
|
||||||
|
ports:
|
||||||
|
- "5000:5000"
|
Reference in New Issue
Block a user