forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-common.yml
80 lines (71 loc) · 2.24 KB
/
docker-compose-common.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.4"
services:
grpc-api:
image: deephaven/grpc-api:local-build
environment:
# https://bugs.openjdk.java.net/browse/JDK-8230305
# cgroups v2 resource reservations only work w/ java 15+ ATM, so it's best for our java processes to be explicit
# with max memory.
#
# To turn on debug logging, add: -Dlogback.configurationFile=logback-debug.xml
- JAVA_TOOL_OPTIONS=-Xmx4g -Ddeephaven.console.type=${DEEPHAVEN_CONSOLE_TYPE} -Ddeephaven.application.dir=${DEEPHAVEN_APPLICATION_DIR}
expose:
- '8080'
# ports:
# - '5005:5005' # For remote debugging (change if using different port)
# Note: using old-style volume mounts, so that the directories get created if they don't exist
# See https://docs.docker.com/storage/bind-mounts/#differences-between--v-and---mount-behavior
volumes:
- ./data:/data
deploy:
resources:
limits:
cpus: '4.0'
memory: 4500M
reservations:
memory: 1000M
# Allows the querying of this process jinfo/jmap
# docker-compose exec grpc-api jmap -heap 1
# docker-compose exec grpc-api jinfo 1
#
# Add NET_ADMIN to allow throttling network speeds
# $ docker exec -it core_grpc-api_1 apt-get install iproute2
# $ docker exec core_grpc-api_1 tc qdisc add dev eth0 root netem delay 10ms
cap_add:
- SYS_PTRACE
web:
image: deephaven/web:local-build
expose:
- "80"
volumes:
- ./data:/data
deploy:
resources:
limits:
cpus: '1'
memory: 256M
# Should only be used for non-production deployments, see grpc-proxy/README.md for more info
grpc-proxy:
image: deephaven/grpc-proxy:local-build
environment:
- BACKEND_ADDR=grpc-api:8080
expose:
- '8080'
# - '8443' #unused
deploy:
resources:
limits:
cpus: '1'
memory: 256M
envoy:
# A reverse proxy configured for no SSL on localhost. It fronts the requests
# for the static content and the websocket proxy.
image: deephaven/envoy:local-build
ports:
- "${PORT}:10000"
# - '9090:9090' #envoy admin
deploy:
resources:
limits:
cpus: '1'
memory: 256M