-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
36 lines (33 loc) · 1.02 KB
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
# MCS Labs Development Environment
# Usage: docker-compose up -d jekyll-dev
# Local site URL: http://localhost:4000/mcs-labs/
services:
jekyll-dev:
build: .
container_name: mcs-labs-dev
ports:
- "4000:4000" # Jekyll server
- "35729:35729" # LiveReload
volumes:
- .:/workspace
- /workspace/node_modules # Anonymous volume for node_modules
- /workspace/_site # Anonymous volume for Jekyll build output
environment:
- JEKYLL_ENV=development
- TZ=America/Los_Angeles
command: bundle exec jekyll serve --host 0.0.0.0 --livereload --livereload-port 35729 --incremental --force_polling
pdf-generator:
build: .
container_name: mcs-labs-pdf
volumes:
- .:/workspace
- /workspace/node_modules
environment:
- NODE_ENV=development
working_dir: /workspace
profiles:
- pdf # Only start this service when explicitly requested
command: pwsh -File scripts/Generate-PDFs-Local.ps1 -SkipInstall
volumes:
node_modules:
jekyll_site: