Hello world: nginx в Docker

This commit is contained in:
GDRN committed 2026-10-14 23:09:03 +00:00
commit 2107fadfb8
5 files changed
+28

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
.git
.gitignore
docker-compose.yml
Dockerfile
+3
View File
@@ -0,0 +1,3 @@
.vscode/
*.log
.env
+2
View File
@@ -0,0 +1,2 @@
FROM nginx:1.27-alpine
COPY index.html /usr/share/nginx/html/index.html
+7
View File
@@ -0,0 +1,7 @@
services:
web:
build: .
container_name: straders-web
restart: unless-stopped
ports:
- "127.0.0.1:8080:80"
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HelloX XWorld</title>
</head>
<body>
<h1>HelloX, XWorld!</h1>
<p>Сайт straders.ru работает.</p>
</body>
</html>