diff --git a/Makefile b/Makefile index 17e159a..e489b5a 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index faf73e9..143b044 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..d3b64ae --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +--- +version: "3.8" + +services: + magic-app: + build: ./ + ports: + - "5000:5000"