-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (58 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
58 lines (58 loc) · 1.51 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
version: '2.1'
services:
zookeeper:
image: confluent/zookeeper
ports:
- "2181"
kafka:
image: confluent/kafka
ports:
- "9092:9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
- zookeeper
scylla:
image: scylladb/scylla
ports:
- "9042:9042"
healthcheck:
test: >
cqlsh -e "CREATE KEYSPACE IF NOT EXISTS furan WITH REPLICATION = { 'class': 'SimpleStrategy', 'replication_factor': 1 } AND DURABLE_WRITES = true;"
interval: 10s
timeout: 5s
retries: 20
vault:
image: quay.io/dollarshaveclub/vault-dev:master
ports:
- "8200:8200"
volumes:
- "$PWD/local_dev_secrets.json:/opt/secrets.json"
furan:
build: .
image: furan:local
environment:
- VAULT_TOKEN=root
- VAULT_ADDR=http://vault:8200
- DOCKER_HOST
- DOCKER_API_VERSION
- DOCKER_TLS_VERIFY
- DOCKER_CERT_PATH=/opt/docker-certs
# delay startup to wait for other services to be ready and for network links to come up
command: /bin/sh -c 'echo "starting (delay)" && sleep 20 && /go/bin/furan -k -i -n scylla -f kafka:9092 server --log-to-sumo=false'
ports:
- "4000:4000"
- "4001:4001"
- "4002:4002"
depends_on:
- kafka
- scylla
- vault
volumes:
- "$DOCKER_CERT_PATH:/opt/docker-certs"
healthcheck:
test: echo 'GET /' |nc localhost 4002
interval: 25s
timeout: 5s
retries: 10