-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
39 lines (37 loc) · 1006 Bytes
/
docker-compose.yml
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
33
34
35
36
37
38
39
version: '3'
services:
jekyll-service:
build:
context: .
dockerfile: Dockerfile.jekyll
volumes:
- ./jekyll:/usr/src/blog
ports:
- "4000:4000"
- "35729:35729"
command: jekyll serve --incremental --livereload
node-service:
build:
context: .
dockerfile: Dockerfile.node
volumes:
- ./package.json:/usr/src/blog/package.json
- ./bin:/usr/src/blog/bin
# Javascript
- ./js:/usr/src/blog/js
- ./webpack.config.js:/usr/src/blog/webpack.config.js
# CSS
- ./sass:/usr/src/blog/sass
- ./postcss.config.js:/usr/src/blog/postcss.config.js
# SVGs
- ./icons:/usr/src/blog/icons
# HTML
- ./jekyll/_site:/usr/src/blog/_site
- ./html-minifier.conf:/usr/src/blog/html-minifier.conf
# Server
- ./public:/usr/src/blog/public
- ./static:/usr/src/blog/static
ports:
- "3000:3000"
- "3001:3001"
command: yarn run bash -c "./bin/watch-node.sh"