-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
73 lines (73 loc) · 1.76 KB
/
docker-compose.yaml
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
72
73
version: "3.8"
services:
cassandra:
container_name: rtq-cassandra
build: cassandra
restart: on-failure
environment:
- CASSANDRA_START_RPC=true
- JAVA_OPTS=-Xms2G -Xmx2G
ports:
- "9042:9042"
- "9160:9160"
deploy:
resources:
limits:
cpus: "1"
memory: 2500m
healthcheck:
test: [ "CMD", "nodetool", "status" ]
interval: 5s
timeout: 5s
retries: 60
elasticsearch:
container_name: rtq-elasticsearch
image: elasticsearch:${ES_VERSION:-6.8.20}
environment:
- discovery.type=single-node
- http.port=9205
- http.publish_host=_local_
- ES_JAVA_OPTS=-Xms256m -Xmx256m
healthcheck:
test: [ "CMD", "curl", "localhost:9205" ]
interval: 30s
timeout: 10s
retries: 5
ports:
- "9205:9205"
- "9300:9300"
exchange-service:
image: test-exchange-service
build:
context: .
dockerfile: Cassandra.DistributedTaskQueue.TestExchangeService/Dockerfile
environment:
- CASSANDRA_ADDRESS=cassandra
- ES_VERSION=${ES_VERSION:-6.8.20}
ports:
- "4403-4407:80"
deploy:
replicas: 5
resources:
limits:
cpus: "0.25"
memory: 200m
depends_on:
cassandra:
condition: service_healthy
monitoring-service:
image: test-monitoring-service
build:
context: .
dockerfile: Cassandra.DistributedTaskQueue.Monitoring.TestService/Dockerfile
environment:
- ES_URL=http://elasticsearch:9205
- ES_VERSION=${ES_VERSION:-6.8.20}
- CASSANDRA_ADDRESS=cassandra
ports:
- "4413:80"
depends_on:
cassandra:
condition: service_healthy
elasticsearch:
condition: service_healthy