-
Notifications
You must be signed in to change notification settings - Fork 1
/
nonsup-docker-compose.yml
57 lines (53 loc) · 1.52 KB
/
nonsup-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
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-java/cluster:latest
deploy:
replicas: 3
links:
- cassandra-db
# depends_on:
# - cassandra-db
environment:
JAVA_OPTS: "-Dconfig.resource=nonsup-cluster-application-docker.conf"
JAVA_TOOL_OPTIONS: "-Dconfig.resource=nonsup-cluster-application-docker.conf" ## for Maven builds
CLUSTER_IP: cluster
CASSANDRA_CONTACT_POINT1: cassandra-db:9042
networks:
- statepoc
endpoint:
image: akka-typed-blog-distributed-state-java/cluster:latest
links:
- cluster
depends_on:
- cluster
environment:
JAVA_OPTS: "-Dconfig.resource=nonsup-endpoint-application-docker.conf"
JAVA_TOOL_OPTIONS: "-Dconfig.resource=nonsup-endpoint-application-docker.conf" ## for Maven builds
CLUSTER_IP: endpoint
ports:
- "8082:8082"
- "8558:8558"
networks:
- statepoc
networks:
statepoc:
driver: bridge