Because Swarmlet activates Docker Swarm mode, you can run your applications in 'highly available' Docker containers across your swarm. The application containers will be distributed on the swarm, this can be configured in your project
docker-compose.yml file under the
Traefik and GlusterFS
Swarmlet uses Traefik for load balancing. Traefik detects new applications and listens for any configuration updates. Traefik will attempt to generate a SSL certificate for each frontend service in your application stack using Let's Encrypt.
Certificates are stored on a GlusterFS volume, mounted at
/mnt/gfs. In the case where a swarm node goes offline, the certificates are still available on other nodes in the GlusterFS pool.
Let's encrypt rate limiting
Example project configuration
.env file to the root of your project, containing:
To enable load balancing on a service and expose it to the web, add the highlighted labels and networks to your frontend service(s):
router repo from the swarm:
Uncomment the following line in the
Save and commit your changes.
Push to re-deploy Traefik with it's new settings: