-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.yml
More file actions
26 lines (21 loc) · 916 Bytes
/
compose.yml
File metadata and controls
26 lines (21 loc) · 916 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
version: "3.8"
services:
eleventy:
# Use the Dockerfile in the current directory
build: .
container_name: 11ty
# Map container port 8080 to host port 8080
ports:
- "8080:8080"
# Volumes are critical for development live-reloading:
volumes:
# 1. Mount the entire project directory into the container.
# This is what allows 11ty inside the container to see changes
# you make to files in your local /src folder.
- .:/app
# 2. Exclude node_modules from the host mount. This ensures the
# dependencies built for the Linux environment inside the container
# aren't overridden by any platform-specific host node_modules.
- /app/node_modules
# Keep the container running for continuous development
restart: unless-stopped