git clone https://github.com/gitmapd/Canasta-DockerSwarm.git
docker swarm init
docker network create -d overlay --scope swarm traefik-network
docker network create -d overlay --scope swarm internal
docker stack deploy -c docker-compose-"service".yml "container_name"
LetsEncrypt may be used with this stack to request and automatically renew DNS certificates. If your provider supports _FILE environment variable names these should be used (in combination with Docker secrets) rather than dumping environment variables in your Docker stack file. The following steps must be followed to enable LetsEncrypt (using the example of my provider, namecheap):
Note the code; and any "Credential" environment variables required to configure this provider; for my example:
code: namecheap
NAMECHEAP_API_KEY_FILE: My Namecheap DNS API Key
NAMECHEAP_API_USER_FILE: My NameCheap username