We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a0716 commit 1c6de77Copy full SHA for 1c6de77
.env.example
@@ -0,0 +1,3 @@
1
+APP_PORT=4000
2
+WATCH_PORT=35729
3
+CONFIG="_config.yml"
docker-compose.yml
@@ -7,22 +7,8 @@ services:
7
context: .
8
dockerfile: Dockerfile
9
ports:
10
- - '4000:4000'
11
- - '35729:35729'
+ - '${APP_PORT}:4000'
+ - '${WATCH_PORT}:35729'
12
volumes:
13
- .:/srv/jekyll
14
- command:
15
- [
16
- 'bundle',
17
- 'exec',
18
- 'jekyll',
19
- 'serve',
20
- '--force_polling',
21
- '--host',
22
- '0.0.0.0',
23
- '--port',
24
- '4000',
25
- '--config',
26
- '_config.yml,_config_development.yml',
27
- '--livereload',
28
- ]
+ command: bundle exec jekyll serve --force_polling --host 0.0.0.0 --port 4000 --config ${CONFIG:-'_config.yml,_config_development.yml'} --livereload
0 commit comments