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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user