← Tous les guides
Ghost (Docker)
A free, open-source publishing platform built specifically for blogging and newsletters -- a faster, more focused alternative to WordPress when you don't need a general-purpose CMS.
Ce guide est élaboré à partir de la documentation officielle de Ghost (Docker), dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
1Run the Ghost container
docker run -d \ --name ghost \ --restart unless-stopped \ -p 2368:2368 \ -e url=http://<the-server's-ip>:2368 \ -v /my/own/ghost-content:/var/lib/ghost/content \ ghost:5-alpineGhost ships with a built-in SQLite database by default in this image -- fine for personal blogs; check the official docs for a MySQL-backed setup if you expect heavier traffic.
2Complete the setup wizard
The /ghost path is the admin panel -- create the owner account there on first visit.
http://<the-server's-ip>:2368/ghost3Set the real `url` once you have a domain
The `url` environment variable must match exactly how visitors reach the site (including https:// once you add a certificate) -- Ghost uses it to generate absolute links throughout the site, and a mismatch breaks images/links.