Skip to content
Snippets Groups Projects
Commit 9d9f68a5 authored by vmadmin's avatar vmadmin
Browse files

Initialer Commit

parent 00fd4053
Branches
No related tags found
No related merge requests found
FROM nginx:latest
COPY nginx/index.html /usr/share/nginx/html/index.html
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
COPY nginx/bilder /usr/share/nginx/html/bilder
version: '3.8'
services:
webserver:
build: .
ports:
- "8081:80"
volumes:
- ./nginx/index.html:/usr/share/nginx/html/index.html
restart: always
nginx/bilder/docker_wal.png

24.8 KiB

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ =404;
}
location /bilder/ {
alias /usr/share/nginx/html/bilder/;
}
}
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker Wal Webseite</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background-color: #f0f8ff; /* Helles Himmelblau */
color: #333; /* Dunkles Grau für Text */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
text-align: center;
}
.container {
background-color: #ffffff; /* Weißer Hintergrund für die Box */
padding: 30px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schattierung für Tiefe */
max-width: 800px;
width: 100%;
}
h1 {
font-size: 3em;
color: #005f73; /* Dunkles Blau für den Titel */
margin-bottom: 20px;
}
p {
font-size: 1.2em;
color: #555; /* Hellgrauer Text für den Absatz */
}
img {
max-width: 100%;
height: auto;
border-radius: 10px;
margin-top: 20px;
}
.footer {
margin-top: 30px;
font-size: 1em;
color: #888;
}
</style>
</head>
<body>
<div class="container">
<h1>Willkommen auf der Docker Wal Webseite!</h1>
<p>Dies ist eine elegante und farbenfrohe Seite, die das Docker-Wal-Bild zeigt.</p>
<img src="bilder/docker_wal.png" alt="Docker Wal">
<div class="footer">
<p>Erstellt mit ❤️ und Docker.</p>
</div>
</div>
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment