Ghost avec docker-compose
Installation du web serveur Ghost 3 et Mysql 5.7
Création d'un fichier ghost.yml dans nano :
# by default, the Ghost image will use SQLite (and thus requires no separate database container)
# we have used MySQL here merely for demonstration purposes
version: '3.1'
services:
ghost:
image: ghost:3-alpine
restart: always
ports:
- 8080:2368
environment:
# see https://docs.ghost.org/docs/config#section-running-ghost-with-config-env-variables
database__client: mysql
database__connection__host: db
database__connection__user: root
database__connection__password: secret
database__connection__database: ghost
db:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: secret
ensuite lancer la commande docker-compose :
docker-compose -f ghost.yml up
Ajout de l'URL du domaine
il faut ajouter la variable environnement :
URL=https://blog.wlan.ovh/
Pas de commentaires