Skip to content

Commit d361c3f

Browse files
committed
feat: Setup docker compose
1 parent 852c080 commit d361c3f

File tree

3 files changed

+38
-42
lines changed

3 files changed

+38
-42
lines changed

README.md

+29-36
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,31 @@
11
# Personal site
22

3-
Built with Jekyll, Poole, Hyde theme, and Docker on Windows machine
4-
5-
6-
`
7-
docker run --rm --name=jekyll --label=jekyll --volume=c:/git/:/srv/jekyll -it -p 127.0.0.1:4000:4000 jekyll/jekyll:pages bash
8-
`
9-
`
10-
docker start jekyll && docker attach jekyll
11-
`
12-
13-
`
14-
jekyll s --incremental --force_polling
15-
`
16-
https://github.com/napcs/node-livereload
17-
18-
19-
![Alt text](https://g.gravizo.com/source/custom_mark2?https%3A%2F%2Fraw.githubusercontent.com%2FTLmaK0%2Fgravizo%2Fmaster%2FREADME.md)
20-
<!---
21-
custom_mark2
22-
@startuml
23-
object Object01
24-
object Object02
25-
object Object03
26-
object Object04
27-
object Object05
28-
object Object06
29-
object Object07
30-
object Object08
31-
32-
Object01 <|-- Object02
33-
Object03 *-- Object04
34-
Object05 o-- "4" Object06
35-
Object07 .. Object08 : some labels2
36-
@enduml
37-
custom_mark2
38-
-->
3+
Built with Jekyll, Poole, Hyde theme, and Docker.
4+
5+
## Prerequisites
6+
7+
You will need the following things properly installed on your computer.
8+
9+
* [Git](https://git-scm.com/)
10+
* [VSCode (or other editor with Markdown preview)](https://code.visualstudio.com/)
11+
* [Docker (optional)](https://docker.com/)
12+
13+
## Installation
14+
15+
* `git clone <repository-url>` this repository
16+
* `cd fdlane.github.io`
17+
18+
## Running / Development
19+
20+
* `docker compose up`
21+
* Visit your app at [http://localhost:4000](http://localhost:4000).
22+
23+
### Deploying
24+
25+
Push to `main` of fdlane.github.io
26+
27+
## Further Reading / Useful Links
28+
29+
* [Github Pages](https://pages.github.com/)
30+
* [Jekyll for Github Pages](http://jekyllrb.com/docs/github-pages/)
31+
* [Convert Bootstrap template to Jekyll site (video)](https://youtu.be/TRTmAlNA92c)

_config.yml

-6
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,3 @@ google_analytics: 'UA-90202336-1'
2323

2424
github:
2525
repo: https://github.com/fdlane/fdlane.github.io
26-
27-
28-
# Gems
29-
gems:
30-
- jekyll-paginate
31-
- jekyll-gist

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
services:
2+
jekyll:
3+
image: jekyll/jekyll:4.2.0
4+
command: jekyll serve --force_polling --livereload
5+
ports:
6+
- 4000:4000
7+
- 35729:35729
8+
volumes:
9+
- .:/srv/jekyll

0 commit comments

Comments
 (0)