Access Ghost Admin
URL: https:
//<server-ip>/ghost
Complete initial setup: create admin user and configure site.
Manage 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
Credentials & Configuration
Stored in /root/ghost/.env and /root/ghost/docker-compose.yml.
Email Setup
Uncomment mail
section in /root/ghost/docker-compose.yml
.
Restart containers:
cd /root/ghost; docker compose restart
Ensure SMTP access is granted.
Example using Gmail App Password:
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
Domain & SSL
Point your domain to the server IP.
Update /root/ghost/docker-compose.yml
URL to domain (url: https://your-domain).
Restart containers:
cd /root/ghost; docker compose restart
For Certbot SSL:
apt install -y certbot python3-certbot-nginx certbot certonly --nginx --non-interactive --agree-tos --email <your-email> -d <your-domain>
Replace SSL paths in /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;
Reload Nginx:
nginx -t && systemctl reload nginx
***LINKS***[]