Merge pull request #169 from liyasthomas/feature/docker-compose

Feature/docker compose
This commit is contained in:
Liyas Thomas
2019-09-27 18:41:49 +05:30
committed by GitHub
2 changed files with 25 additions and 0 deletions

View File

@@ -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

19
docker-compose.yml Normal file
View File

@@ -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"