feat: Add Docker support and health endpoint

- Add production-ready Dockerfile with multi-stage build
- Add .dockerignore for optimized builds
- Add docker-compose.yml for easy deployment
- Add /health endpoint for container health checks
- Update README with comprehensive Docker documentation
- Include security best practices (non-root user, health checks)
- Support for both development and production deployments
This commit is contained in:
2025-09-30 14:23:14 +02:00
parent 13dacee924
commit d1f312116e
6 changed files with 253 additions and 5 deletions

View File

@@ -74,11 +74,6 @@ export function LoginForm() {
</button>
</form>
<div className="text-center text-sm text-gray-600">
<p>Standard Login:</p>
<p className="font-mono">Benutzername: owner</p>
<p className="font-mono">Passwort: admin123</p>
</div>
</div>
</div>
);

View File

@@ -11,6 +11,11 @@ app.use("*", async (c, next) => {
return next();
});
// Health check endpoint
app.get("/health", (c) => {
return c.json({ status: "ok", timestamp: new Date().toISOString() });
});
app.route("/rpc", rpcApp);
app.get("/*", clientEntry);