docker-fobi/webroot/test.html
Jesko Anschütz e54069b8b9 weitere Seite
2025-10-25 18:35:36 +02:00

71 lines
1.7 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Docker Demo</title>
<style>
:root {
--bg: #0f172a;
--card: #1e293b;
--accent: #38bdf8;
--text: #e2e8f0;
}
body {
font-family: sans-serif;
background-color: var(--bg);
color: var(--text);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
text-align: center;
}
h1 {
color: var(--accent);
font-size: 2.5rem;
margin-bottom: 0.5rem;
}
p {
max-width: 600px;
line-height: 1.6;
opacity: 0.9;
}
.card {
background-color: var(--card);
padding: 2rem;
border-radius: 1rem;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
footer {
position: absolute;
bottom: 1rem;
font-size: 0.8rem;
opacity: 0.5;
}
@media (max-width: 600px) {
h1 { font-size: 2rem; }
.card { margin: 1rem; padding: 1.5rem; }
}
</style>
</head>
<body>
<div class="card">
<h1>🚀 Dein eigener Webserver läuft!</h1>
<p>Diese Seite wird aus einem <strong>nginx</strong>-Container ausgeliefert. </p>
<p>Starte, stoppe und lösche den Container, um zu üben, wie Docker funktioniert.</p>
<p>Befehle zum Üben:</p>
<pre style="background:#0f172a;padding:1rem;border-radius:0.5rem;overflow-x:auto;">
docker run --name webdemo -d -p 8080:80 nginx
docker cp webroot/test.html webdemo:/usr/share/nginx/html/index.html
docker stop webdemo
docker start webdemo
docker rm -f webdemo
</pre>
</div>
<footer>Demo für ZSL-Docker-Lernende</footer>
</body>
</html>