From a7442e96235c4acdaaf2153858833797c137ce6c Mon Sep 17 00:00:00 2001 From: Nicholas Palenchar Date: Fri, 27 Sep 2019 08:06:51 -0400 Subject: [PATCH 1/2] docker-compose for development --- docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 000000000..7a86bf734 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +version: "3.7" + +services: + web: + build: + context: . + volumes: + - "./.postwoman:/app/.postwoman" + - "./assets:/app/assets" + - "./directives:/app/directives" + - "./layouts:/app/layouts" + - "./middleware:/app/middleware" + - "./pages:/app/pages" + - "./plugins:/app/plugins" + - "./static:/app/static" + - "./store:/app/store" + ports: + - "3000:3000" + command: "npm run dev" From be1d94909bfe592f626099241d605311ec5d1b8d Mon Sep 17 00:00:00 2001 From: Nicholas Palenchar Date: Fri, 27 Sep 2019 08:24:03 -0400 Subject: [PATCH 2/2] add docker-compose development instructions --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 10dfecc57..a61c1084b 100644 --- a/README.md +++ b/README.md @@ -149,6 +149,12 @@ You're done! 1. Start the development server with `npm run dev`. 1. Open development site by going to [http://localhost:3000](http://localhost:3000) in your browser. +#### Or, with docker-compose: + +1. [Clone this repo](https://help.github.com/en/articles/cloning-a-repository) with git. +1. Run `docker-compose up` +1. Open development site by going to [http://localhost:3000](http://localhost:3000) in your browser. + ## Docker 🐳 ```bash