From e52e16df932a4f1c5fae1f275c14a50c3b276d97 Mon Sep 17 00:00:00 2001 From: NightPumpkin Date: Sun, 21 Aug 2022 22:12:32 +0200 Subject: [PATCH] ghost et mysql --- docker-compose/ghost-mysql | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 docker-compose/ghost-mysql diff --git a/docker-compose/ghost-mysql b/docker-compose/ghost-mysql new file mode 100644 index 0000000..a1e7524 --- /dev/null +++ b/docker-compose/ghost-mysql @@ -0,0 +1,43 @@ +## Discord Plex FR : https://discord.gg/3gtABCH +## Version 2022-08-21 +version: '3.1' + +services: + ghost: + container_name: blog_ghost + image: ghost:5-alpine + restart: unless-stopped + ports: + - 2368:2368 + volumes: + - ./ghost_content:/var/lib/ghost/content + environment: + url: https://blog.ndd.fr # LIEN DU BLOG, peut ĂȘtre http://IP_LOCAL:2368 si utilisation local uniquement + database__client: mysql + database__connection__host: db + database__connection__user: root + database__connection__password: PASSWORD_SUPER_FORT # CHOISIR UN MOT DE PASSE + database__connection__database: ghost +# - DEBUT - CONFIGURATION MAIL - NON OBLIGATOIRE # +# mail__transport: SMTP +# mail__from: monmail@ndd.fr +# mail__options__service: SMTP +# mail__options__host: serveur.smtp.net +# mail__options__port: +# mail__options__auth__user: nom_utilisateur +# mail__options__auth__pass: mon_mot_de_passe +# - FIN - CONFIGURATION MAIL - NON OBLIGATOIRE # + depends_on: + - db + mem_limit: 512m + + db: + container_name: blog_db + image: mysql:8-debian + restart: unless-stopped + environment: + MYSQL_ROOT_PASSWORD: PASSWORD_SUPER_FORT # RE-UTILISER LE MOT DE PASSE CHOISI DANS LES VARIABLES DE GHOST + volumes: + - ./ghost_db:/var/lib/mysql + mem_limit: 768m + -- 2.45.2