|
@@ -2,10 +2,18 @@ version: "2.4" |
|
@@ -2,10 +2,18 @@ version: "2.4" |
|
2
|
|
2
|
|
|
3
|
services:
|
3
|
services:
|
|
4
|
cloud-usercenter:
|
4
|
cloud-usercenter:
|
|
|
|
5
|
+# build:
|
|
|
|
6
|
+# context: .
|
|
|
|
7
|
+# dockerfile: Dockerfile
|
|
|
|
8
|
+# args:
|
|
|
|
9
|
+# - PINPOINT_VERSION=2.3.1
|
|
|
|
10
|
+# - AGENT_ID=nmms_manage1
|
|
|
|
11
|
+# - APP_NAME=nmms_manage
|
|
|
|
12
|
+# - SPRING_PROFILES=release
|
|
5
|
container_name: cloud-usercenter-jenkins
|
13
|
container_name: cloud-usercenter-jenkins
|
|
6
|
image: wlpt2/cloud-user-center:latest
|
14
|
image: wlpt2/cloud-user-center:latest
|
|
7
|
environment:
|
15
|
environment:
|
|
8
|
- - JAVA_OPTS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -XX:+StartAttachListener -Djdk.attach.allowAttachSelf=true -Xms256m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m
|
16
|
+ - JAVA_OPTS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -XX:+StartAttachListener -Djdk.attach.allowAttachSelf=true
|
|
9
|
volumes:
|
17
|
volumes:
|
|
10
|
- /home/wlpt/wlpt-cloud-userCenter/config:/config:ro
|
18
|
- /home/wlpt/wlpt-cloud-userCenter/config:/config:ro
|
|
11
|
ports:
|
19
|
ports:
|
|
@@ -15,8 +23,8 @@ services: |
|
@@ -15,8 +23,8 @@ services: |
|
15
|
# volumes_from:
|
23
|
# volumes_from:
|
|
16
|
# - container:pinpoint-agent
|
24
|
# - container:pinpoint-agent
|
|
17
|
network_mode: host
|
25
|
network_mode: host
|
|
18
|
- mem_limit: 2g
|
|
|
|
19
|
- mem_reservation: 1g
|
26
|
+ mem_limit: 1g
|
|
|
|
27
|
+ mem_reservation: 512m
|
|
20
|
cpus: 2.0
|
28
|
cpus: 2.0
|
|
21
|
|
29
|
|
|
22
|
networks:
|
30
|
networks:
|