Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running as a service on a swarm #5

Open
tiagocasalribeiro opened this issue Nov 19, 2023 · 3 comments
Open

Running as a service on a swarm #5

tiagocasalribeiro opened this issue Nov 19, 2023 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tiagocasalribeiro
Copy link

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

@Clem-Fern
Copy link
Owner

Clem-Fern commented Nov 19, 2023

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
Copy link
Author

depends_on:
is not supported on a swarm

@Clem-Fern
Copy link
Owner

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.

@Clem-Fern Clem-Fern added enhancement New feature or request help wanted Extra attention is needed labels Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants