-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.41 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.41 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Every Hugo invocation for this site runs through this file.
#
# Do not build the site with a locally installed Hugo: Hextra requires the
# *extended* edition (themes/hextra/theme.toml: min_version 0.134.0), and a
# plain Hugo build fails on the theme's SCSS. The image below is pinned to an
# exact extended release so builds stay reproducible.
services:
dev:
image: &hugo hugomods/hugo:exts-0.154.5
user: "${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
working_dir: /src
volumes:
- .:/src
ports:
- "1313:1313"
command: >
hugo server
--bind 0.0.0.0
--port 1313
--disableFastRender
--navigateToChanged
build:
image: *hugo
user: "${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
working_dir: /src
volumes:
- .:/src
profiles: ["cli"]
command: hugo --minify --gc --cleanDestinationDir
# Visual review of the built site. Behind the cli profile so a plain
# `docker compose up` never pulls a browser image.
shots:
build:
context: ./scripts/shots
image: statusengine-docs-shots:pw1.63.0
user: "${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
environment:
HOME: /tmp
working_dir: /shots
volumes:
- .:/src
profiles: ["cli"]
command: node shoot.js
shell:
image: *hugo
user: "${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
working_dir: /src
volumes:
- .:/src
profiles: ["cli"]
entrypoint: sh