mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-01-23 05:12:20 +01:00
serve static files using nginx
This commit is contained in:
parent
f6d570d3f6
commit
ceec13aaee
@ -1,11 +1,29 @@
|
|||||||
version: "3.5"
|
version: "3.8"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
internalnet:
|
||||||
|
driver: bridge
|
||||||
|
enable_ipv6: false
|
||||||
|
|
||||||
|
x-mail: &defaults
|
||||||
|
env_file: local.env
|
||||||
|
networks:
|
||||||
|
- internalnet
|
||||||
|
|
||||||
services:
|
services:
|
||||||
blog:
|
|
||||||
container_name: personal-blog
|
hugo-site:
|
||||||
|
<<: *defaults
|
||||||
|
container_name: hugo-site
|
||||||
|
build: ./config/hugo
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
|
environment:
|
||||||
|
- VIRTUAL_HOST=lieuwe.${NGINX_HOST}
|
||||||
|
- VIRTUAL_PORT=6262
|
||||||
|
- VIRTUAL_PROTO=http
|
||||||
|
- LETSENCRYPT_HOST=lieuwe.${NGINX_HOST}
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/hugo/public:/usr/share/nginx/html:ro,z
|
- ./config/hugo/configure:/etc/nginx/templates/default.conf.template:ro,z
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
expose:
|
||||||
- 6262:80
|
- "6262"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user