use nginx

This commit is contained in:
Lieuwe Leene 2022-11-13 17:58:23 +01:00
parent 6428a9f841
commit f6d570d3f6

View File

@ -3,13 +3,9 @@ version: "3.5"
services: services:
blog: blog:
container_name: personal-blog container_name: personal-blog
build: image: nginx:alpine
context: ./personal-page
args:
HUGO_ENV_ARG: "production"
HUGO_CMD: "-d ${NGINX_HOST}"
volumes: volumes:
- hugo_data:/var/www/hugo:z - ./config/hugo/public:/usr/share/nginx/html:ro,z
restart: always
volumes: ports:
hugo_data: - 6262:80