-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
28 lines (28 loc) · 910 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
28 lines (28 loc) · 910 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
27
28
# Local development. Two commands worth knowing:
#
# docker compose up --build # build once, serve on http://localhost:8088
# docker compose up --build --watch # same, but rebuild when bios/ changes
#
# The site is static: no secrets, no database. The only knob is the host port,
# in case something already owns 8088 on your machine:
#
# SITE_PORT=9090 docker compose up --build
#
# or put SITE_PORT=9090 in an untracked .env file, which Compose reads.
services:
site:
build: .
container_name: bio-site
ports:
- "${SITE_PORT:-8088}:80"
restart: unless-stopped
develop:
# A static site is baked into the image, so an edit means a rebuild --
# there is no live-reload to sync into.
watch:
- action: rebuild
path: ./bios
- action: rebuild
path: ./site.yml
- action: rebuild
path: ./generator