71 lines
1.8 KiB
HTML
71 lines
1.8 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>
|
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
|
|
:root {
|
|
--bg: #0f172a;
|
|
--card: #1e293b;
|
|
--accent: #38bdf8;
|
|
--text: #e2e8f0;
|
|
}
|
|
body {
|
|
font-family: 'Inter', 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/index.html webdemo:/usr/share/nginx/html/
|
|
docker stop webdemo
|
|
docker start webdemo
|
|
docker rm -f webdemo
|
|
</pre>
|
|
</div>
|
|
<footer>Demo für ZSL-Docker-Lernende</footer>
|
|
</body>
|
|
</html>
|