-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (37 loc) · 1.11 KB
/
docker-compose.yml
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
version: '3'
networks:
hugo_network_notebook:
driver: bridge
services:
## for testing static file from hugo build
nginx:
image: nginx:${DK_NGINX_VER:-stable-alpine}
container_name: ${DK_NGINX_NAME:-nginx_notebook}
restart: unless-stopped
volumes:
- ${DIST_DIR:-./src/dist}:/usr/share/nginx/html:ro
networks:
- hugo_network_notebook
ports:
- ${NGINX_PORT:-9998}:80
# hugo service to run hugo commands
hugo:
image: klakegg/hugo:${DK_HUGO_VER:-ext-alpine}
container_name: ${DK_HUGO_NAME:-hugo_notebook}
user: ${CURRENT_USER:-1000:1000}
command: help
volumes:
- ${SRC_DIR:-./src}:/src
# hugo server
server:
image: klakegg/hugo:${DK_HUGO_VER:-ext-alpine}
container_name: ${DK_HUGO_SERVER_NAME:-hugo_notebook_server}
user: ${CURRENT_USER:-1000:1000}
restart: unless-stopped
command: ["server", "--watch", "--port", "${HUGO_PORT:-1315}", "--liveReloadPort", "${HUGO_PORT:-1315}", "-D"]
volumes:
- ${SRC_DIR:-./src}:/src
networks:
- hugo_network_notebook
ports:
- ${HUGO_PORT:-1315}:${HUGO_PORT:-1315}