Open rafagsiqueira opened 6 years ago
Thanks a lot for the detailed report, it's much appreciated! My question is: would it be feasible to add the extra attributes to the existing docker-compose-yml
? As far as I understand, you can use it with docker-swarm too.
Is this still the "state of the art" deployment to a swarm or are there any updates? I need to migrate a very old instance (2.2.4.) with hundreds of users into our swarm.
No idea to be honest, I don't know anyone (besides the user who opened this issue) that's deploying Indico on Docker Swarm.
Dear contributors,
I have been working on deploying indico to a docker swarm for the last couple of weeks and since it finally worked I thought I should share the configuration parameters with you:
For the docker swarm a few extra objects are needed, since it is not possible to use local mounts and also to persist data when a node is lost.
First we create an overlay network for communication of all the services from multiple nodes:
docker network create -d overlay indico
Then a few configuration files are "uploaded" to the docker swarm:
This is the content of create-extensions.sh:
This is the content of nginx.conf. A few changes are necessary to avoid nginx from crashing when it can't reach indico-static or indico-web:
Then I created volumes that can be mounted as needed on the nodes when running each container. This example is for a Docker Swarm deployed on AWS. But volumes can be created using other type of volume plugins:
Then I tagged one of the nodes to make sure the containers that use indicocustom-vol and indicostatic-vol, both run on the same node:
docker node update --label-add has_volumes=indico
Finally the docker-cloud.yml. Note that I had to build my own version of indico-static, since it wasn't available in your docker hub repo. But I replaced the value in this config considering that you might want to also push the indico-static image:
Also please note that I left the traefik parameters. Traefik is the load balancer I use for our docker swarm cluster. Hope you can appreciate the effort. And again thank you for your help!