mirror of
https://github.com/draussenfunker/draussenfunker.github.io.git
synced 2025-12-31 08:29:17 +00:00
Merge pull request #18 from pulponair/feature/16-Docker-Compose
[FEAUTRE] Bring docker-compose.yml
This commit is contained in:
commit
4607df5596
2 changed files with 27 additions and 0 deletions
17
README.md
17
README.md
|
|
@ -20,3 +20,20 @@ The file `docs/blog/helloworld.md` will be rendered to `/blog/helloworld`, the `
|
||||||
|
|
||||||
Images and other assets can be placed into the public dir. `docs/.vuepress/public/images/example.png` and be accessed in the browser via `/images/example.png`.
|
Images and other assets can be placed into the public dir. `docs/.vuepress/public/images/example.png` and be accessed in the browser via `/images/example.png`.
|
||||||
|
|
||||||
|
## Contribution
|
||||||
|
Piece of cake:
|
||||||
|
- File an issue
|
||||||
|
- File a corresponding pull request
|
||||||
|
- "I don't know what a pull request is!": Just file an issue, we will take good care of you. :)
|
||||||
|
|
||||||
|
### Setting up a Development Environment to contribute
|
||||||
|
|
||||||
|
#### Methode #1
|
||||||
|
tl;dr:
|
||||||
|
- clone the repository
|
||||||
|
- run "yarn install"
|
||||||
|
- run "yarn dev"
|
||||||
|
|
||||||
|
#### Methode #2
|
||||||
|
You got a docker environment running anyway? Lovely:
|
||||||
|
- run docker compose up
|
||||||
|
|
|
||||||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
services:
|
||||||
|
dev:
|
||||||
|
image: "node:16"
|
||||||
|
user: "node"
|
||||||
|
working_dir: /home/node/app
|
||||||
|
volumes:
|
||||||
|
- ./:/home/node/app
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
command: sh -c "yarn install && yarn build && yarn dev"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue