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>
55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"schemaVersion": 2,
|
|
"services": [
|
|
{
|
|
"name": "nginx",
|
|
"image": "nginx:latest",
|
|
"isMain": true,
|
|
"internalPort": "80",
|
|
"volumes": [
|
|
{
|
|
"hostPath": "${APP_DATA_DIR}/data/conf.d",
|
|
"containerPath": "/etc/nginx/conf.d"
|
|
},
|
|
{
|
|
"hostPath": "${APP_DATA_DIR}/data/nginx.conf",
|
|
"containerPath": "/etc/nginx/nginx.conf"
|
|
},
|
|
{
|
|
"hostPath": "${APP_DATA_DIR}/data/www",
|
|
"containerPath": "/var/www"
|
|
},
|
|
{
|
|
"hostPath": "${APP_DATA_DIR}/data/html",
|
|
"containerPath": "/usr/share/nginx/html"
|
|
},
|
|
{
|
|
"hostPath": "${APP_DATA_DIR}/data/logs",
|
|
"containerPath": "/var/log/nginx"
|
|
},
|
|
{
|
|
"hostPath": "${APP_DATA_DIR}/data/ssl",
|
|
"containerPath": "/etc/nginx/ssl",
|
|
"readOnly": true
|
|
}
|
|
],
|
|
"environment": [
|
|
{
|
|
"key": "NGINX_HOST",
|
|
"value": "${NGINX_SERVER_NAME:-localhost}"
|
|
},
|
|
{
|
|
"key": "TZ",
|
|
"value": "${TZ:-Europe/Paris}"
|
|
}
|
|
],
|
|
"healthCheck": {
|
|
"test": "curl --fail http://localhost:80 || exit 1",
|
|
"interval": "30s",
|
|
"timeout": "10s",
|
|
"retries": 3
|
|
}
|
|
}
|
|
]
|
|
}
|