forked from stargate/stargate-mongoose-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 1.19 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
version: '2'
services:
coordinator:
image: stargateio/coordinator-dse-next:${SGTAG}
networks:
- stargate
ports:
- "9042:9042"
- "8081:8081"
mem_limit: 2G
environment:
- JAVA_OPTS="-Xmx1536M"
- CLUSTER_NAME=dse-${DSETAG}-cluster
- RACK_NAME=rack1
- DATACENTER_NAME=datacenter1
- ENABLE_AUTH=true
- DEVELOPER_MODE=true
healthcheck:
test: curl -f http://localhost:8084/checker/readiness || exit 1
interval: 15s
timeout: 10s
retries: 10
jsonapi:
image: stargateio/jsonapi:${JSONTAG}
depends_on:
coordinator:
condition: service_healthy
networks:
- stargate
ports:
- "8181:8181"
mem_limit: 2G
environment:
- JAVA_MAX_MEM_RATIO=75
- JAVA_INITIAL_MEM_RATIO=50
- GC_CONTAINER_OPTIONS=-XX:+UseG1GC
- QUARKUS_GRPC_CLIENTS_BRIDGE_HOST=coordinator
- QUARKUS_GRPC_CLIENTS_BRIDGE_PORT=8091
- QUARKUS_HTTP_ACCESS_LOG_ENABLED=${REQUESTLOG}
- QUARKUS_LOG_LEVEL=${LOGLEVEL}
healthcheck:
test: curl -f http://localhost:8080/stargate/health || exit 1
interval: 5s
timeout: 10s
retries: 10
networks:
stargate: