mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-04-21 07:23:19 +02:00
use nginx
This commit is contained in:
parent
6428a9f841
commit
f6d570d3f6
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user