Merge pull request #169 from liyasthomas/feature/docker-compose
Feature/docker compose
This commit is contained in:
commit
7fc58666ad
2 changed files with 25 additions and 0 deletions
|
|
@ -149,6 +149,12 @@ You're done!
|
||||||
1. Start the development server with `npm run dev`.
|
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.
|
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 🐳
|
## Docker 🐳
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
19
docker-compose.yml
Normal file
19
docker-compose.yml
Normal 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"
|
||||||
Loading…
Reference in a new issue