From e5d160d359deaef61fd8261864af57dd81eed9a0 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 30 Jun 2020 20:48:47 +0200 Subject: [PATCH] Add docker-compose setup --- Makefile | 5 ++++- README.md | 7 +++++++ compose.yml | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 compose.yml 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"