generated from sujaykundu777/devlopr-jekyll
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
25 lines (24 loc) · 735 Bytes
/
docker-compose-dev.yml
File metadata and controls
25 lines (24 loc) · 735 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
version: '3' # specify docker-compose version
# Define the services/containers to be run
services:
jekyllbuild:
build:
context: .
args:
build_command: "jekyll build --watch"
volumes:
- ".:/srv/jekyll"
ports:
- 4000:4000
- 35729:35729
nginx:
image: nginx
volumes:
- "./build:/var/www/public"
- "./nginx/nginx.conf:/etc/nginx/nginx.conf"
- "./nginx/html/404.html:/usr/share/nginx/html/404.html"
# to use jekyll's 404 page, uncomment the line below and disable the line above
# Important: ensure that 404.html exist else this will throw an error during build
# - "./web/_site/404.html:/usr/share/nginx/html/404.html"
ports:
- 80:80