forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker-compose file for windows compatibility (alshedivat#875)
This file makes it easier for windows users to use docker. (Closes alshedivat#829) Previous to this commit, those who used Windows had to install Ubuntu inside windows (via WSL) and run our commands. Now they can run it by just typing `docker-compose up`. > The main problem was that `./bin/dockerhub_run.sh` command was written with `Bash` in mind and you had to change it a little bit to make it compatible with windows `Powershell`. We shouldn't have two scripts. This is why adding a `docker-compose.yml` file is necessary.
- Loading branch information
1 parent
f644008
commit 911376c
Showing
5 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3" | ||
# this file uses prebuilt image in dockerhub | ||
services: | ||
jekyll: | ||
image: amirpourmand/al-folio | ||
command: bash -c " | ||
rm -f Gemfile.lock | ||
&& bundler exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose" | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- .:/srv/jekyll |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: "3" | ||
|
||
services: | ||
jekyll_custom: | ||
build: . | ||
command: bash -c " | ||
rm -f Gemfile.lock | ||
&& bundler exec jekyll serve --watch --port=8080 --host=0.0.0.0 --livereload --verbose" | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- .:/srv/jekyll |