Clem-Fern / rtabby-web-api

Tabby Web API for Config Sync
GNU Affero General Public License v3.0
62 stars 4 forks source link

Running as a service on a swarm #5

Open tiagocasalribeiro opened 1 year ago

tiagocasalribeiro commented 1 year ago

It would be great to make it able to run as a service on a docker swarm, to achieve high availability.

Clem-Fern commented 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.

tiagocasalribeiro commented 1 year ago

depends_on: is not supported on a swarm

Clem-Fern commented 1 year ago

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.