WIP adding hugo page

This commit is contained in:
Lieuwe Leene 2022-11-14 16:02:40 +01:00
parent 8d85d5b10b
commit ef88c67176
2 changed files with 36 additions and 11 deletions

13
config/hugo/configure vendored Normal file
View File

@ -0,0 +1,13 @@
server {
listen ${VIRTUAL_PORT};
listen [::]:${VIRTUAL_PORT};
server_name ${VIRTUAL_HOST};
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

View File

@ -14,6 +14,22 @@ x-mail: &defaults
services: services:
hugo-site:
<<: *defaults
container_name: hugo-site
image: nginx:alpine
environment:
- VIRTUAL_HOST=lieuwe.${NGINX_HOST}
- VIRTUAL_PORT=6262
- VIRTUAL_PROTO=http
- LETSENCRYPT_HOST=lieuwe.${NGINX_HOST}
volumes:
- ./config/hugo/public:/usr/share/nginx/html:ro,z
- ./config/hugo/configure:/etc/nginx/templates/default.conf.template:ro,z
restart: always
expose:
- "6262"
pgsqlserver: pgsqlserver:
<<: *defaults <<: *defaults
container_name: pgsqlserver container_name: pgsqlserver
@ -23,7 +39,7 @@ services:
- POSTGRES_PASSWORD=${SQL_PSWD} - POSTGRES_PASSWORD=${SQL_PSWD}
volumes: volumes:
- sql_data:/var/lib/postgresql/data/:z - sql_data:/var/lib/postgresql/data/:z
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro - ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro,z
restart: always restart: always
expose: expose:
- "5432" - "5432"
@ -39,8 +55,6 @@ services:
- LETSENCRYPT_HOST=git.${NGINX_HOST} - LETSENCRYPT_HOST=git.${NGINX_HOST}
volumes: volumes:
- gitea_data:/data:z - gitea_data:/data:z
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose: expose:
- "3000" - "3000"
ports: ports:
@ -87,11 +101,10 @@ services:
- "587:587" - "587:587"
- "993:993" - "993:993"
volumes: volumes:
- nginx_certs:/etc/letsencrypt/live:ro - nginx_certs:/etc/letsencrypt/live/:ro,z
- mail_data:/var/mail/:z - mail_data:/var/mail/:z
- mail_state:/var/mail-state/:z - mail_state:/var/mail-state/:z
- mail_config:/tmp/docker-mailserver/:z - mail_config:/tmp/docker-mailserver/:z
- /etc/localtime:/etc/localtime:ro
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
depends_on: depends_on:
@ -109,14 +122,14 @@ services:
- "80:80" - "80:80"
- "443:443" - "443:443"
volumes: volumes:
- nginx_html:/usr/share/nginx/html:z
- nginx_conf:/etc/nginx/conf.d/:z
- nginx_dhparam:/etc/nginx/dhparam:z - nginx_dhparam:/etc/nginx/dhparam:z
- nginx_certs:/etc/nginx/certs/:z - nginx_certs:/etc/nginx/certs/:z
- nginx_conf:/etc/nginx/conf.d/:z
- nginx_vhost:/etc/nginx/vhost.d/:z - nginx_vhost:/etc/nginx/vhost.d/:z
- nginx_html:/usr/share/nginx/html:z
- mail_html:/var/www/roundcube:z - mail_html:/var/www/roundcube:z
- ./config/nginx/inbox_location:/etc/nginx/vhost.d/inbox.${NGINX_HOST}_location:z - ./config/nginx/inbox_location:/etc/nginx/vhost.d/inbox.${NGINX_HOST}_location:ro,z
- /var/run/docker.sock:/tmp/docker.sock:z - /var/run/docker.sock:/tmp/docker.sock:ro,z
depends_on: depends_on:
- ddnsgd - ddnsgd
@ -129,7 +142,7 @@ services:
- reverse-proxy - reverse-proxy
volumes: volumes:
- acme-state:/etc/acme.sh - acme-state:/etc/acme.sh
- /var/run/docker.sock:/var/run/docker.sock:z - /var/run/docker.sock:/var/run/docker.sock:ro,z
depends_on: depends_on:
- ddnsgd - ddnsgd
@ -143,7 +156,6 @@ services:
- USERNAME=${DNS_USERNAME} - USERNAME=${DNS_USERNAME}
- PASSWORD=${DNS_PASSWORD} - PASSWORD=${DNS_PASSWORD}
volumes: volumes:
acme-state: acme-state:
gitea_data: gitea_data: