-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
69 lines (64 loc) · 1.53 KB
/
docker-compose.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
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
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
# Cassandra
cassandra:
image: bandsintown/cassandra:2.1.18
depends_on:
- consul
- consulator
command: consul-template -config /etc/consul-template/conf
environment:
- CASSANDRA_SEEDS_PER_DC=3
- CASSANDRA_LISTEN_ADDRESS=auto
- CASSANDRA_BROADCAST_ADDRESS=auto
- CONSUL_HTTP_ADDR=consul:8500
- SERVICE_7000_IGNORE=true
- SERVICE_7001_IGNORE=true
- SERVICE_7199_IGNORE=true
- SERVICE_9042_IGNORE=true
- SERVICE_9160_NAME=cassandra
- SERVICE_9160_CHECK_TCP=true
- SERVICE_9160_CHECK_INTERVAL=15s
- SERVICE_9160_CHECK_TIMEOUT=5s
ports:
- 7000
- 7001
- 7199
- 9042
- 9160
ulimits:
memlock: 65536
nproc: 65536
nofile:
soft: 65536
hard: 65536