浏览代码

Update Ghost stack.yml to have persistent data (#2370)

Yolan Romailler 1 年之前
父节点
当前提交
45b7cc83c4
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      ghost/stack.yml

+ 8 - 0
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: