colinmollenhour / mariadb-galera-swarm

MariaDb Galera Cluster container based on official mariadb image which can auto-bootstrap and recover cluster state.
https://hub.docker.com/r/colinmollenhour/mariadb-galera-swarm
Apache License 2.0
217 stars 102 forks source link

docker stack deploy -c docker-compose.yml galera fails #52

Closed sfarrell5123 closed 5 years ago

sfarrell5123 commented 5 years ago

when I run 'docker stack deploy -c docker-compose.yml galera'

from your examples/swarm

I get this error :

name Additional property name is not allowed

docker compose --version Docker version 18.06.1-ce, build e68fc7a

I read you can get that error also if there is an illegal character

It seems it might be version related also

sfarrell5123 commented 5 years ago

I changed it to this

volumes: vol-name: external: name: '{{.Service.Name}}-{{.Task.Slot}}-data'

volumes: mysql-data: driver: local

not sure if it's as intended or not, but at least it executed

sfarrell5123 commented 5 years ago

might just need version 3.4 or newer at the top of the file

colinmollenhour commented 5 years ago

Merged #54