Skip to content

Instantly share code, notes, and snippets.

@LevZaplatin
Created September 16, 2019 09:05
Show Gist options
  • Save LevZaplatin/2f4024197fce026c3aaa04bcb24535f6 to your computer and use it in GitHub Desktop.
Save LevZaplatin/2f4024197fce026c3aaa04bcb24535f6 to your computer and use it in GitHub Desktop.
docker service create
--name traefik
--constraint=node.role==manager
--publish 443:443
--publish 80:80
--publish 8080:8080
--publish 5432:5432
--publish 6222:22
--mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock
--network test-ctm-net
traefik
--docker
--docker.swarmMode
--docker.domain=test.ctm
--docker.watch
--api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment