-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconsul.yml
37 lines (35 loc) · 962 Bytes
/
consul.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
# One max per physical node
lb:
image: camptocamp/haproxy-consul:latest
container_name: 'load-balancer'
environment:
HAPROXY_DOMAIN: '127.0.0.1.nip.io:test'
SERVICE_80_IGNORE: 'yes'
SERVICE_8080_NAME: 'proxy-admin_infra'
ports:
- "80:80"
- "8080"
links:
- "consul"
# Only one for the whole cluster
consul:
command: -server -bootstrap
image: progrium/consul:latest
container_name: 'consul'
environment:
SERVICE_53_IGNORE: 'yes'
SERVICE_8300_IGNORE: 'yes'
SERVICE_8301_IGNORE: 'yes'
SERVICE_8302_IGNORE: 'yes'
SERVICE_8400_IGNORE: 'yes'
SERVICE_8500_NAME: 'consul-admin_infra'
# Exactly one per physical node
registrator:
command: "-internal consul://consul:8500"
image: gliderlabs/registrator:latest
container_name: 'registrator'
links:
- "consul"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"