with nginx as webbrowser running
This commit is contained in:
23
compose.yml
23
compose.yml
@@ -2,15 +2,34 @@ services:
|
||||
hugo:
|
||||
image: hugomods/hugo:0.135.0
|
||||
container_name: hugo
|
||||
user: 1000:1000
|
||||
restart: no
|
||||
volumes:
|
||||
- ./:/src
|
||||
- static-site:/src/public
|
||||
#ports:
|
||||
#- "1313:1313"
|
||||
command: server --bind 0.0.0.0
|
||||
command: ["hugo", "--cleanDestinationDir", "--baseURL", "https://blog.fuhlig.de/", "--ignoreCache"]
|
||||
#command: ["hugo"]
|
||||
networks:
|
||||
- net
|
||||
|
||||
nginx:
|
||||
image: nginx:alpine
|
||||
container_name: blog
|
||||
#ports:
|
||||
#- "80:80"
|
||||
volumes:
|
||||
- static-site:/usr/share/nginx/html:ro
|
||||
depends_on:
|
||||
- hugo
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- net
|
||||
|
||||
volumes:
|
||||
static-site:
|
||||
name: blog.data
|
||||
|
||||
networks:
|
||||
net:
|
||||
name: docker_public
|
||||
|
||||
Reference in New Issue
Block a user