-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (65 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
71 lines (65 loc) · 1.5 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '2'
services:
# Consul
consul:
image: consul:0.7.5
command: "agent -dev -client 0.0.0.0 -ui"
container_name: consul
ports:
- 8301
- 8500
environment:
- CONSUL_BIND_INTERFACE=eth0
- SERVICE_IGNORE=true
# Registrator
registrator:
image: nhuray/registrator:v7
command: "-internal consul://consul:8500"
container_name: registrator
depends_on:
- consul
volumes:
- /var/run/docker.sock:/tmp/docker.sock
# Consulator
consulator:
image: lewispeckover/consulator
command: "sync -prefix=service /app/consulator.yml"
depends_on:
- consul
volumes:
- ./consulator.yml:/app/consulator.yml
environment:
- CONSUL_HTTP_ADDR=consul:8500
# Zookeeper
zookeeper:
image: bandsintown/zookeeper:3.4.10
depends_on:
- consul
- consulator
command: consul-template -config /etc/consul-template/conf
environment:
- SERVICE_2181_NAME=zookeeper
- CONSUL_HTTP_ADDR=consul:8500
- DISABLE_CONSUL_TEMPLATE=true
- S6_LOGGING=0
ports:
- 2181
- 2888
- 3888
# Solr
solr:
image: bandsintown/solr:7.7.1
depends_on:
- zookeeper
- consulator
command: consul-template -config /etc/consul-template/conf
environment:
- CONSUL_HTTP_ADDR=consul:8500
- DISABLE_CONSUL_TEMPLATE=true
- S6_LOGGING=0
- ZK_HOST=zookeeper:2181/solr
- SOLR_HOME=/data
ports:
- 8983
volumes:
- ./data:/data