Acceder al panel de Ghost
URL: https://<server-ip>/ghost
Completa la configuración inicial: crea el usuario administrador y configura el sitio.
Gestionar Ghost con Docker Compose
cd /root/ghost docker compose ps # View running containers docker compose up -d # Start Ghost docker compose down # Stop Ghost docker compose restart # Restart Ghost
Credenciales y configuración
Almacenadas en /root/ghost/.env y /root/ghost/docker-compose.yml.
Configuración de correo
Descomenta mail sección en /root/ghost/docker-compose.yml.
Reiniciar contenedores:
cd /root/ghost; docker compose restart
Asegúrate de que el acceso a SMTP esté habilitado.
Ejemplo con contraseña de aplicación de Gmail:
mail__transport: SMTP mail__options__host: smtp.gmail.com mail__options__port: 465 mail__options__secure: true mail__options__auth__user: [email protected] mail__options__auth__pass: your-app-password
Dominio y SSL
Apunta tu dominio a la IP del servidor.
Actualiza /root/ghost/docker-compose.yml URL al dominio (url: https://your-domain).
Reiniciar contenedores:
cd /root/ghost; docker compose restart
Para Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Reemplaza las rutas de SSL en /etc/nginx/sites-enabled/ghost.
# Example ssl_certificate /etc/letsencrypt/live/your-domain/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/your-domain/privkey.pem;
Recarga Nginx:
nginx -t && systemctl reload nginx