feat: docker-compose with hugo dev mode
NEED REWORK
This commit is contained in:
parent
7485ce2e04
commit
5a3be8e546
|
@ -12,3 +12,10 @@ services:
|
||||||
image: php:8-fpm
|
image: php:8-fpm
|
||||||
volumes:
|
volumes:
|
||||||
- ./www:/var/www/html
|
- ./www:/var/www/html
|
||||||
|
hugo:
|
||||||
|
image: mbentley/hugo
|
||||||
|
working_dir: "/data"
|
||||||
|
user: "${UID}:${GID}"
|
||||||
|
volumes:
|
||||||
|
- ./v2:/data
|
||||||
|
command: server -D --bind 0.0.0.0
|
||||||
|
|
|
@ -5,6 +5,11 @@ server {
|
||||||
# access_log /var/log/nginx/access.log;
|
# access_log /var/log/nginx/access.log;
|
||||||
root /var/www/html;
|
root /var/www/html;
|
||||||
try_files $uri $uri/ /index.php;
|
try_files $uri $uri/ /index.php;
|
||||||
|
|
||||||
|
location /v2 {
|
||||||
|
proxy_pass http://hugo:1313/v2;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass php-fpm:9000;
|
fastcgi_pass php-fpm:9000;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user