-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
25 lines (23 loc) · 881 Bytes
/
docker-compose.yml
File metadata and controls
25 lines (23 loc) · 881 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'
services:
web:
build: .
volumes:
# Bind mount the working dir so the app reloads automatically every time you make a change
# Note that we use 'delegated' to improve perf on OSX: https://docs.docker.com/docker-for-mac/osxfs-caching/
- .:/src:delegated
# Bind a Docker-only volume to the generated _site folder to make it clear we don't need to sync that folder
# back to the host OS. That makes Jekyll in Docker work much faster.
- generated_site:/src/_site
ports:
- "4000:4000"
# Expose port for jekyll livereload
- "35729:35729"
environment:
- JEKYLL_ENV=development
# Pass your AWS credentials as env vars through to the Docker container for uploading the website to S3
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_SESSION_TOKEN
volumes:
generated_site: