Accéder à l'administrateur Ghost
URL : https://<server-ip>/ghost
Terminez la configuration initiale : créez un utilisateur administrateur et configurez le site.
Gérer Ghost via 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
Identifiants et configuration
Stocké dans /root/ghost/.env et /root/ghost/docker-compose.yml.
Configuration de la messagerie
Décommenter mail section dans /root/ghost/docker-compose.yml.
Redémarrez les conteneurs :
cd /root/ghost; docker compose restart
Assurez-vous que l'accès SMTP est accordé.
Exemple d'utilisation du mot de passe de l'application 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
Domaine et SSL
Pointez votre domaine vers l'adresse IP du serveur.
Mise à jour /root/ghost/docker-compose.yml URL du domaine (url : https://votre-domaine).
Redémarrez les conteneurs :
cd /root/ghost; docker compose restart
Pour Certbot SSL :
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Remplacer les chemins SSL dans /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;
Recharger Nginx :
nginx -t && systemctl reload nginx