Open tiagocasalribeiro opened 1 year ago
I'm not really familiar with docker swarm but it seems to be possible to deploy service using docker-compose file.
docker stack deploy --compose-file docker-compose.yml rtabby-web-api
https://docs.docker.com/engine/swarm/stack-deploy/#deploy-the-stack-to-the-swarm
I do not know if any change are needed to work correctely. You'll probably have to create shared volume between your node.
depends_on: is not supported on a swarm
If we want rtabby-web-api to be high available, I think it should use a mariadb cluster instead of having a unique mariadb server.
db
service and depends_on
could be remove then.
It would be great to make it able to run as a service on a docker swarm, to achieve high availability.