Hugo for my main website. https://vgai.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

62 lines
1.4 KiB

version: "3.6"
services:
build:
image: klakegg/hugo:asciidoctor
restart: "no"
user: "${UID_GID}"
volumes:
- "./src:/src"
- "./output:/output"
command:
- "--buildDrafts"
- "--destination /output"
- "--cleanDestinationDir"
server:
image: klakegg/hugo:asciidoctor
restart: "no"
user: "${UID_GID}"
volumes:
- "./src:/src"
- "./output:/output"
command:
- "server"
- "--buildDrafts"
- "--destination /output"
- "--watch"
ports:
- "1313:1313"
nginx:
image: nginx
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.hugo.entrypoints=websecure"
- "traefik.http.routers.hugo.rule=Host(`vgai.de`)"
volumes:
- "./output:/usr/share/nginx/html"
expose:
- "80"
networks:
- traefik_proxy
webmentions:
image: nginx
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.webmentions.entrypoints=websecure"
- "traefik.http.routers.webmentions.rule=Host(`vgai.de`) && PathPrefix(`/webmentions`)"
volumes:
- "./mentions/default.conf:/etc/nginx/conf.d/default.conf"
- "./mentions/mentions.csv:/var/log/nginx/postdata.log"
expose:
- "80"
networks:
- traefik_proxy
networks:
traefik_proxy:
external: true