NginxLocal

This commit is contained in:
Alejandro Sarmiento
2024-03-05 21:26:01 +01:00
parent b7c9b61659
commit 798a8214a7
5 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
server {
listen 80;
server_name localhost;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}

View File

@@ -0,0 +1,11 @@
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: nginx-local
ports:
- "16080:80"
volumes:
- ./html:/usr/share/nginx/html
- ./conf:/etc/nginx/conf.d
restart: unless-stopped

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link href="style.css" rel="stylesheet" />
</head>
<body>
<h1>HOLA CARA COLA</h1>
</body>
</html>