正在显示
1 个修改的文件
包含
8 行增加
和
3 行删除
| 1 | -version: "2" | 1 | +version: "2.4" |
| 2 | 2 | ||
| 3 | services: | 3 | services: |
| 4 | cloud-usercenter: | 4 | cloud-usercenter: |
| @@ -12,15 +12,20 @@ services: | @@ -12,15 +12,20 @@ services: | ||
| 12 | # - SPRING_PROFILES=release | 12 | # - SPRING_PROFILES=release |
| 13 | container_name: cloud-usercenter-jenkins | 13 | container_name: cloud-usercenter-jenkins |
| 14 | image: wlpt2/cloud-user-center:latest | 14 | image: wlpt2/cloud-user-center:latest |
| 15 | + environment: | ||
| 16 | + - JAVA_OPTS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 | ||
| 15 | volumes: | 17 | volumes: |
| 16 | - /home/wlpt/wlpt-cloud-userCenter/config:/config:ro | 18 | - /home/wlpt/wlpt-cloud-userCenter/config:/config:ro |
| 17 | ports: | 19 | ports: |
| 18 | - "8066:8066" | 20 | - "8066:8066" |
| 19 | expose: | 21 | expose: |
| 20 | - "8066" | 22 | - "8066" |
| 21 | - volumes_from: | ||
| 22 | - - container:pinpoint-agent | 23 | +# volumes_from: |
| 24 | +# - container:pinpoint-agent | ||
| 23 | network_mode: host | 25 | network_mode: host |
| 26 | + mem_limit: 1g | ||
| 27 | + mem_reservation: 512m | ||
| 28 | + cpus: 2.0 | ||
| 24 | 29 | ||
| 25 | networks: | 30 | networks: |
| 26 | default: | 31 | default: |
-
请 注册 或 登录 后发表评论