forked from Scalingo/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 930 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
services:
# Replicates the prod setup, in which puma serves the file built by jekyll + the assets
web:
build: .
ports:
- 4304:4304
volumes:
- ./:/usr/src/app
environment:
BUNDLE_PATH: "/usr/src/app/vendor/.bundle"
JEKYLL_ENV: "development"
command: bundle exec puma -C config/puma.rb
# Jekyll server+watcher. Can be accessed directly or through the puma process.
jekyll:
build: .
ports:
- 4300:4300
- 4302:4302
volumes:
- ./:/usr/src/app
environment:
BUNDLE_PATH: "/usr/src/app/vendor/.bundle"
JEKYLL_ENV: "development"
command: bundle exec jekyll serve --watch --host 0.0.0.0 --port 4300 --trace --incremental --livereload --livereload-port 4302
# Assets (JS + CSS) building
assets:
build: .
volumes:
- ./:/usr/src/app
command: yarn build --verbose --watch
environment:
NODE_ENV: "development"