Hello world: nginx в Docker
This commit is contained in:
commit
2107fadfb8
5 files changed
+28
No files matched your search
@@ -0,0 +1,4 @@
|
|||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
docker-compose.yml
|
||||||
|
Dockerfile
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
.vscode/
|
||||||
|
*.log
|
||||||
|
.env
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
FROM nginx:1.27-alpine
|
||||||
|
COPY index.html /usr/share/nginx/html/index.html
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: .
|
||||||
|
container_name: straders-web
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8080:80"
|
||||||
+12
@@ -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>
|
||||||
Reference in new issue
Block a user