Added Docker run instructions and Docker Compose file
This commit is contained in:
parent
7f72dda5b7
commit
ab376edfd4
2 changed files with 14 additions and 1 deletions
13
README.md
13
README.md
|
|
@ -67,6 +67,19 @@ To serve across lan (requires su to forward the port 4000 over lan):
|
||||||
./scripts/serve-lan-production
|
./scripts/serve-lan-production
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Docker
|
||||||
|
|
||||||
|
Run using Docker:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run --rm -it -p 4000:4000 -v "$PWD:/srv/jekyll" jekyll/jekyll jekyll serve --watch --host "0.0.0.0" --config _config.yml,_config.dev.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
Run using Docker with Docker Compose:
|
||||||
|
```
|
||||||
|
docker-compose up
|
||||||
|
```
|
||||||
|
|
||||||
## OSS used in { Personal }
|
## OSS used in { Personal }
|
||||||
|
|
||||||
One of the reasons { Personal } is real is the following OSS projects:
|
One of the reasons { Personal } is real is the following OSS projects:
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ services:
|
||||||
image: jekyll/jekyll
|
image: jekyll/jekyll
|
||||||
ports:
|
ports:
|
||||||
- "4000:4000"
|
- "4000:4000"
|
||||||
command: /bin/bash -c 'PATH=$$PATH:/srv/jekyll/scripts; serve-lan'
|
command: jekyll serve --watch --host "0.0.0.0" --config _config.yml,_config.dev.yml
|
||||||
volumes:
|
volumes:
|
||||||
- .:/srv/jekyll
|
- .:/srv/jekyll
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue