From 18e5b3d998cc04b483db0218f29dc43b4827fcd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8E=B7=F0=9F=90=A2=20S=2E=20P=2E=20O=2E=20Clayton?= Date: Thu, 17 Aug 2023 15:58:57 -0400 Subject: [PATCH] Preserve db on restart --- ghost.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghost.yaml b/ghost.yaml index f65fe08..a661c08 100644 --- a/ghost.yaml +++ b/ghost.yaml @@ -19,13 +19,16 @@ networks: - name: "{{ stack_internal_network }}" state: "{{ container_state }}" + mounts: + - target: /var/lib/mysql + source: "{{ stack_prefix_name }}ghost_db_data" - name: Run Ghost docker_container: name: "{{ stack_prefix_name }}ghost" recreate: true restart_policy: unless-stopped - image: docker.io/library/ghost:5.59-alpine + image: docker.io/library/ghost:5.59.1-alpine env: database__client: mysql database__connection__host: "{{ stack_prefix_name }}ghost-db"