From 45b7cc83c4763f5dc3501e1f7a2411eca1b16ce2 Mon Sep 17 00:00:00 2001 From: Yolan Romailler Date: Tue, 5 Dec 2023 03:16:08 +0300 Subject: [PATCH] Update Ghost stack.yml to have persistent data (#2370) --- ghost/stack.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ghost/stack.yml b/ghost/stack.yml index eefc6e8a7..9d495d941 100644 --- a/ghost/stack.yml +++ b/ghost/stack.yml @@ -18,9 +18,17 @@ services: url: http://localhost:8080 # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired) #NODE_ENV: development + volumes: + - ghost:/var/lib/ghost/content db: image: mysql:8.0 restart: always environment: MYSQL_ROOT_PASSWORD: example + volumes: + - db:/var/lib/mysql + +volumes: + ghost: + db: