31 lines
817 B
YAML
31 lines
817 B
YAML
name: andrewamason.tech
|
|
|
|
services:
|
|
server:
|
|
image: cgr.dev/chainguard/hugo:latest
|
|
command: hugo new site quickstart
|
|
command: cd quickstart
|
|
command: git init
|
|
command: git submodule add https://github.com/luizdepra/hugo-coder.git themes/hugo-coder
|
|
command: echo 'theme = "hugo-coder"' >> hugo.toml
|
|
command: hugo serve --bind 0.0.0.0 --port 8080
|
|
#command: server -D
|
|
volumes:
|
|
- nfs_hugo_src:/src
|
|
- nfs_hugo_cache:/tmp/hugo_cache
|
|
ports:
|
|
- 1313:1313
|
|
expose:
|
|
- 1313
|
|
|
|
volumes:
|
|
nfs_hugo_src:
|
|
driver_opts:
|
|
type: nfs
|
|
o: addr=172.24.3.23,rw,nolock,soft
|
|
device: :/volume1/docker/hugo/src
|
|
nfs_hugo_cache:
|
|
driver_opts:
|
|
type: nfs
|
|
o: addr=172.24.3.23,rw,nolock,soft
|
|
device: :/volume1/docker/hugo/cache |