-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
65 lines (60 loc) · 1.68 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
services:
cassandra-db:
hostname: cassandra-1
image: cassandra:3.11.11
command: /bin/bash -c "sleep 1 && echo ' -- Pausing to let system catch up ... -->' && /docker-entrypoint.sh cassandra -f"
ports:
- "7000:7000"
- "7001:7001"
- "7199:7199"
- "9042:9042"
- "9160:9160"
# volumes:
# - ./data/cassandra-1:/var/lib/cassandra:rw
networks:
- statepoc
healthcheck:
test: ["CMD", "cqlsh", "-u cassandra", "-p cassandra" ,"-e describe keyspaces"]
interval: 15s
timeout: 10s
retries: 10
cluster:
image: akka-typed-blog-distributed-state/cluster:1.2.0
deploy:
replicas: 3
ports:
- 8558-8567:8558 # akka-mgmt
links:
- cassandra-db
# depends_on:
# - cassandra-db
environment:
JAVA_OPTS: "-Dconfig.resource=cluster-application-docker.conf"
CLUSTER_IP: cluster
CASSANDRA_CONTACT_POINT1: cassandra-db:9042
GRAPHITE-SANDBOX: cinnamon-graphite-docker-sandbox-2203-graphite-1
networks:
- cinnamon-graphite-docker-sandbox-2203_default
- statepoc
endpoint:
image: akka-typed-blog-distributed-state/cluster:1.2.0
links:
- cluster
depends_on:
- cluster
environment:
JAVA_OPTS: "-Dconfig.resource=endpoint-application-docker.conf"
CLUSTER_IP: endpoint
GRAPHITE-SANDBOX: cinnamon-graphite-docker-sandbox-2203-graphite-1
ports:
- "8082:8082"
- "8558:8558"
networks:
- cinnamon-graphite-docker-sandbox-2203_default
- statepoc
networks:
#Note: this network name must match the version of the sandbox
cinnamon-graphite-docker-sandbox-2203_default:
external: true
statepoc:
driver: bridge