hugo with drafts.
This commit is contained in:
parent
ac86b9c53c
commit
fb4ffa2e1b
32
compose.yaml
32
compose.yaml
@ -1,9 +1,33 @@
|
||||
services:
|
||||
|
||||
hugo:
|
||||
image: hugomods/hugo:git-0.127.0
|
||||
volumes:
|
||||
- project:/src/site
|
||||
- content:/src/site/content
|
||||
- public:/src/site/public
|
||||
networks:
|
||||
- proxy
|
||||
command: 'hugo server -D -M -s site --bind="0.0.0.0" -b="https://draft.wiki.cafe" --appendPort=false'
|
||||
# command: 'tail -f /dev/null'
|
||||
deploy:
|
||||
update_config:
|
||||
failure_action: rollback
|
||||
order: start-first
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.apex_site.loadbalancer.server.port=1313"
|
||||
- "traefik.http.routers.apex_site.rule=Host(`draft.wiki.cafe`)"
|
||||
- "traefik.http.routers.apex_site.entrypoints=web-secure"
|
||||
- "traefik.http.routers.apex_site.tls.certresolver=production"
|
||||
- "caddy=https://draft.wiki.cafe"
|
||||
- "caddy.reverse_proxy={{upstreams 1313}}"
|
||||
- "caddy.tls.on_demand="
|
||||
|
||||
web-server:
|
||||
image: nginx:1.23-alpine
|
||||
volumes:
|
||||
- ./public:/usr/share/nginx/html:ro
|
||||
volumes:
|
||||
- public:/usr/share/nginx/html:ro
|
||||
networks:
|
||||
- proxy
|
||||
healthcheck:
|
||||
@ -30,3 +54,7 @@ networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
project:
|
||||
content:
|
||||
public:
|
Loading…
x
Reference in New Issue
Block a user