Nginx proxy manager
Instalar nginx proxy manager
Guía oficial
Full Setup Instructions | Nginx Proxy Manager
Requisitos
Instalación
Crear una carpeta para almacenar el contenedor de Docker mkdir -p docker/nginx_manager
, dentro de esta carpeta creamos un archivo llamado docker-compose.yml
con:
services:
app:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# These ports are in format <host-port>:<container-port>
- '80:80' # Public HTTP Port
- '443:443' # Public HTTPS Port
- '81:81' # Admin Web Port
# Add any other Stream port you want to expose
- '21:21' # FTP
volumes:
- ./data:/data
- ./letsencrypt:/etc/letsencrypt
Una vez creado ejecutar:
docker compose up -d
Cuando el contenedor este iniciado accedemos con IP_de_la_maquina:81
.
Credenciales de inicio de sesión:
Email: admin@example.com
Password: changeme
Custom Default Site
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Unknown Host</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f8f9fa;
}
.container {
text-align: center;
}
h1 {
font-size: 2.5rem;
color: #343a40;
}
p {
font-size: 1.25rem;
color: #6c757d;
}
</style>
</head>
<body>
<div class="container">
<h1>Unknown Host</h1>
<p>The server could not recognize the hostname in the request.</p>
<p>Please check the URL and try again.</p>
</div>
</body>
</html>