From 91c5956211bc86c334dd2729748f957d2bdf340f Mon Sep 17 00:00:00 2001 From: john Date: Thu, 27 Nov 2025 15:59:13 +0000 Subject: [PATCH] Update ghost/docker-compose.yml Ensure that mysql database remains on the same node; if it goes down add the label to another node and hope that the databases have been replicated properly --- ghost/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/docker-compose.yml b/ghost/docker-compose.yml index 1e772fd..83f9bd3 100644 --- a/ghost/docker-compose.yml +++ b/ghost/docker-compose.yml @@ -38,9 +38,9 @@ services: image: mysql:8.4.6 # latest or last version of version 8; Ghost doesn't recognise version 9 container_name: mysql deploy: -# placement: -# constraints: [node.role == worker] - replicas: 1 + placement: + constraints: + - node.labels.database == here restart: always volumes: - /mnt/cephfs/docker/ghost/mysql:/var/lib/mysql:rw