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
This commit is contained in:
2025-11-27 15:59:13 +00:00
parent a3920e42ff
commit 91c5956211

View File

@@ -38,9 +38,9 @@ services:
image: mysql:8.4.6 # latest or last version of version 8; Ghost doesn't recognise version 9 image: mysql:8.4.6 # latest or last version of version 8; Ghost doesn't recognise version 9
container_name: mysql container_name: mysql
deploy: deploy:
# placement: placement:
# constraints: [node.role == worker] constraints:
replicas: 1 - node.labels.database == here
restart: always restart: always
volumes: volumes:
- /mnt/cephfs/docker/ghost/mysql:/var/lib/mysql:rw - /mnt/cephfs/docker/ghost/mysql:/var/lib/mysql:rw