nas-samba v1.0.1: health check, hostname, remove demo credentials
- Add health check (curl /api/health) so Traefik can verify container health - Set container hostname to nas.alexzaw.dev - Remove hardcoded demo credentials from login page - Remove admin123 fallback password — require SMB_PASSWORD env var - Fail fast if no admin password is configured
This commit is contained in:
@@ -4,9 +4,10 @@
|
||||
"services": [
|
||||
{
|
||||
"name": "nas-samba",
|
||||
"image": "git.alexzaw.dev/alexz/nas-samba:1.0.0",
|
||||
"image": "git.alexzaw.dev/alexz/nas-samba:1.0.1",
|
||||
"isMain": true,
|
||||
"internalPort": 8080,
|
||||
"hostname": "nas.alexzaw.dev",
|
||||
"addPorts": [
|
||||
{ "hostPort": 445, "containerPort": 445, "interface": "${BIND_IP}" },
|
||||
{ "hostPort": 139, "containerPort": 139, "interface": "${BIND_IP}" }
|
||||
@@ -19,7 +20,14 @@
|
||||
{ "key": "SMB_PASSWORD", "value": "${SMB_PASSWORD}" },
|
||||
{ "key": "JWT_SECRET", "value": "${JWT_SECRET}" },
|
||||
{ "key": "TZ", "value": "${TZ}" }
|
||||
]
|
||||
],
|
||||
"healthCheck": {
|
||||
"test": "curl --fail http://127.0.0.1:8080/api/health || exit 1",
|
||||
"interval": "30s",
|
||||
"timeout": "10s",
|
||||
"retries": 3,
|
||||
"startPeriod": "15s"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user