fix(nginx): use correct data/ prefix for volume paths
Some checks failed
Test / test (push) Has been cancelled

Runtipi copies app data/ contents to APP_DATA_DIR/data/, not APP_DATA_DIR/.
Without the data/ prefix, Docker creates empty directories instead of
using the actual config files, causing nginx to crash on startup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gui-Gos
2026-02-12 14:27:01 +01:00
parent 29ea05eb4d
commit 5c72b3f3f9

View File

@@ -8,32 +8,27 @@
"internalPort": "80", "internalPort": "80",
"volumes": [ "volumes": [
{ {
"hostPath": "${APP_DATA_DIR}/conf.d", "hostPath": "${APP_DATA_DIR}/data/conf.d",
"containerPath": "/etc/nginx/conf.d", "containerPath": "/etc/nginx/conf.d"
"readOnly": false
}, },
{ {
"hostPath": "${APP_DATA_DIR}/nginx.conf", "hostPath": "${APP_DATA_DIR}/data/nginx.conf",
"containerPath": "/etc/nginx/nginx.conf", "containerPath": "/etc/nginx/nginx.conf"
"readOnly": false
}, },
{ {
"hostPath": "${APP_DATA_DIR}/www", "hostPath": "${APP_DATA_DIR}/data/www",
"containerPath": "/var/www", "containerPath": "/var/www"
"readOnly": false
}, },
{ {
"hostPath": "${APP_DATA_DIR}/html", "hostPath": "${APP_DATA_DIR}/data/html",
"containerPath": "/usr/share/nginx/html", "containerPath": "/usr/share/nginx/html"
"readOnly": false
}, },
{ {
"hostPath": "${APP_DATA_DIR}/logs", "hostPath": "${APP_DATA_DIR}/data/logs",
"containerPath": "/var/log/nginx", "containerPath": "/var/log/nginx"
"readOnly": false
}, },
{ {
"hostPath": "${APP_DATA_DIR}/ssl", "hostPath": "${APP_DATA_DIR}/data/ssl",
"containerPath": "/etc/nginx/ssl", "containerPath": "/etc/nginx/ssl",
"readOnly": true "readOnly": true
} }