Added Docker run instructions and Docker Compose file

This commit is contained in:
Jorge Arias 2018-03-12 02:35:48 -03:00
parent 7f72dda5b7
commit ab376edfd4
2 changed files with 14 additions and 1 deletions

View file

@ -67,6 +67,19 @@ To serve across lan (requires su to forward the port 4000 over lan):
./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 }
One of the reasons { Personal } is real is the following OSS projects:

View file

@ -5,7 +5,7 @@ services:
image: jekyll/jekyll
ports:
- "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:
- .:/srv/jekyll