forked from chbatey/docker-jvm-akka
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
87 lines (70 loc) · 1.82 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '2'
services:
jdk8:
image: jdk8
environment:
- JAVA_TOOL_OPTIONS=
jdk8MemoryLimit:
image: jdk8
mem_limit: 1024M
environment:
- JAVA_TOOL_OPTIONS=
jdk8MemoryLimitCGroupMemoryLimit:
image: jdk8
mem_limit: 1024M
environment:
- JAVA_TOOL_OPTIONS=-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
jdk8CpuShares:
image: jdk8
mem_limit: 1024M
cpu_shares: 2048
environment:
- JAVA_TOOL_OPTIONS=
jdk8CpuQuotasAndQuotaContainerSupport:
image: jdk8
mem_limit: 1024M
cpu_shares: 2048
cpu_quota: 300000
environment:
- JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport -XX:-PreferContainerQuotaForCPUCount
jdk11:
image: jdk11
environment:
- JAVA_TOOL_OPTIONS=
jdk11MemoryLimit:
image: jdk11
mem_limit: 1024M
environment:
- JAVA_TOOL_OPTIONS=
# UseCGroupMemoryLimitForHeap has been removed in jdk11
jdk11MemoryLimitContainerSupport:
image: jdk11
mem_limit: 1024M
environment:
- JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport
jdk11CpuShares:
image: jdk11
mem_limit: 1024M
cpu_shares: 2048
environment:
- JAVA_TOOL_OPTIONS=
jdk11CpuSharesContainerSupport:
image: jdk11
mem_limit: 1024M
cpu_shares: 2048
environment:
- JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport
jdk11CpuQuotasAndQuotaContainerSupport:
image: jdk11
mem_limit: 1024M
cpu_shares: 2048
cpu_quota: 300000
environment:
- JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport -XX:-PreferContainerQuotaForCPUCount
jdk11CpuQuotasAndQuotaContainerSupportPreferQuotas:
image: jdk11
mem_limit: 1024M
cpu_shares: 2048
cpu_quota: 300000
environment:
- JAVA_TOOL_OPTIONS=-XX:+UseContainerSupport -XX:+PreferContainerQuotaForCPUCount