Skip to content

Instantly share code, notes, and snippets.

@Riduidel
Created September 15, 2017 14:06
Show Gist options
  • Select an option

  • Save Riduidel/07bf1925578d8fbe4eaca9e385cfb366 to your computer and use it in GitHub Desktop.

Select an option

Save Riduidel/07bf1925578d8fbe4eaca9e385cfb366 to your computer and use it in GitHub Desktop.
version: '2'
services:
registrator:
image: gliderlabs/registrator:master
network_mode: host
volumes:
- /var/run/docker.sock:/tmp/docker.sock
tty: true
restart: always
command:
- -internal
- -cleanup
- -deregister
- always
- -resync=60
- -useIpFromLabel
- io.rancher.container.ip
- consul://localhost:8500
labels:
io.rancher.container.dns: 'true'
io.rancher.container.hostname_override: container_name
io.rancher.scheduler.global: 'true'
io.rancher.container.network: 'false'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment