|
@@ -1,31 +1,35 @@
|
|
|
services:
|
|
services:
|
|
|
- ruoyi-monitor:
|
|
|
|
|
- image: ruoyi/ruoyi-monitor:2.4.1
|
|
|
|
|
- container_name: ruoyi-monitor
|
|
|
|
|
- environment:
|
|
|
|
|
- # 时区上海
|
|
|
|
|
- TZ: Asia/Shanghai
|
|
|
|
|
- ports:
|
|
|
|
|
- - "9100:9100"
|
|
|
|
|
- volumes:
|
|
|
|
|
- # 日志目录
|
|
|
|
|
- - /home/docker/ruoyi-monitor/logs/:/ruoyi/monitor/logs
|
|
|
|
|
- privileged: true
|
|
|
|
|
- network_mode: "host"
|
|
|
|
|
|
|
+# ruoyi-monitor:
|
|
|
|
|
+# image: ruoyi/ruoyi-monitor:2.4.1
|
|
|
|
|
+# container_name: ruoyi-monitor
|
|
|
|
|
+# environment:
|
|
|
|
|
+# # 时区上海
|
|
|
|
|
+# TZ: Asia/Shanghai
|
|
|
|
|
+# ports:
|
|
|
|
|
+# - "9100:9100"
|
|
|
|
|
+# volumes:
|
|
|
|
|
+# # 日志目录
|
|
|
|
|
+# - /home/docker/ruoyi-monitor/logs/:/ruoyi/monitor/logs
|
|
|
|
|
+# privileged: true
|
|
|
|
|
+# network_mode: "host"
|
|
|
|
|
+# mem_limit: 2g
|
|
|
|
|
+# memswap_limit: 2g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
+# ruoyi-snailjob-server:
|
|
|
|
|
+# image: ruoyi/ruoyi-snailjob-server:2.4.1
|
|
|
|
|
+# container_name: ruoyi-snailjob-server
|
|
|
|
|
+# environment:
|
|
|
|
|
+# # 时区上海
|
|
|
|
|
+# TZ: Asia/Shanghai
|
|
|
|
|
+# ports:
|
|
|
|
|
+# - "8800:8800"
|
|
|
|
|
+# - "17888:17888"
|
|
|
|
|
+# volumes:
|
|
|
|
|
+# - /home/docker/snailjob/logs/:/ruoyi/snailjob/logs
|
|
|
|
|
+# privileged: true
|
|
|
|
|
+# network_mode: "host"
|
|
|
|
|
+# mem_limit: 2g
|
|
|
|
|
+# memswap_limit: 2g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
- ruoyi-snailjob-server:
|
|
|
|
|
- image: ruoyi/ruoyi-snailjob-server:2.4.1
|
|
|
|
|
- container_name: ruoyi-snailjob-server
|
|
|
|
|
- environment:
|
|
|
|
|
- # 时区上海
|
|
|
|
|
- TZ: Asia/Shanghai
|
|
|
|
|
- ports:
|
|
|
|
|
- - "8800:8800"
|
|
|
|
|
- - "17888:17888"
|
|
|
|
|
- volumes:
|
|
|
|
|
- - /home/docker/snailjob/logs/:/ruoyi/snailjob/logs
|
|
|
|
|
- privileged: true
|
|
|
|
|
- network_mode: "host"
|
|
|
|
|
|
|
|
|
|
ruoyi-gateway:
|
|
ruoyi-gateway:
|
|
|
image: ruoyi/ruoyi-gateway:2.4.1
|
|
image: ruoyi/ruoyi-gateway:2.4.1
|
|
@@ -40,6 +44,8 @@ services:
|
|
|
- /home/docker/ruoyi-gateway/logs/:/ruoyi/gateway/logs
|
|
- /home/docker/ruoyi-gateway/logs/:/ruoyi/gateway/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 3g
|
|
|
|
|
+ memswap_limit: 3g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-auth:
|
|
ruoyi-auth:
|
|
|
image: ruoyi/ruoyi-auth:2.4.1
|
|
image: ruoyi/ruoyi-auth:2.4.1
|
|
@@ -54,6 +60,8 @@ services:
|
|
|
- /home/docker/ruoyi-auth/logs/:/ruoyi/auth/logs
|
|
- /home/docker/ruoyi-auth/logs/:/ruoyi/auth/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 2g
|
|
|
|
|
+ memswap_limit: 2g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-system:
|
|
ruoyi-system:
|
|
|
image: ruoyi/ruoyi-system:2.4.1
|
|
image: ruoyi/ruoyi-system:2.4.1
|
|
@@ -68,23 +76,27 @@ services:
|
|
|
- /home/docker/ruoyi-system/logs/:/ruoyi/system/logs
|
|
- /home/docker/ruoyi-system/logs/:/ruoyi/system/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 3g
|
|
|
|
|
+ memswap_limit: 3g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
- ruoyi-job:
|
|
|
|
|
- image: ruoyi/ruoyi-job:2.4.1
|
|
|
|
|
- container_name: ruoyi-job
|
|
|
|
|
- environment:
|
|
|
|
|
- # 时区上海
|
|
|
|
|
- TZ: Asia/Shanghai
|
|
|
|
|
- SERVER_PORT: 9203
|
|
|
|
|
- SNAIL_PORT: 29203
|
|
|
|
|
- ports:
|
|
|
|
|
- - "9203:9203"
|
|
|
|
|
- - "29203:29203"
|
|
|
|
|
- volumes:
|
|
|
|
|
- # 日志目录
|
|
|
|
|
- - /home/docker/ruoyi-job/logs/:/ruoyi/job/logs
|
|
|
|
|
- privileged: true
|
|
|
|
|
- network_mode: "host"
|
|
|
|
|
|
|
+# ruoyi-job:
|
|
|
|
|
+# image: ruoyi/ruoyi-job:2.4.1
|
|
|
|
|
+# container_name: ruoyi-job
|
|
|
|
|
+# environment:
|
|
|
|
|
+# # 时区上海
|
|
|
|
|
+# TZ: Asia/Shanghai
|
|
|
|
|
+# SERVER_PORT: 9203
|
|
|
|
|
+# SNAIL_PORT: 29203
|
|
|
|
|
+# ports:
|
|
|
|
|
+# - "9203:9203"
|
|
|
|
|
+# - "29203:29203"
|
|
|
|
|
+# volumes:
|
|
|
|
|
+# # 日志目录
|
|
|
|
|
+# - /home/docker/ruoyi-job/logs/:/ruoyi/job/logs
|
|
|
|
|
+# privileged: true
|
|
|
|
|
+# network_mode: "host"
|
|
|
|
|
+# mem_limit: 2g
|
|
|
|
|
+# memswap_limit: 2g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-resource:
|
|
ruoyi-resource:
|
|
|
image: ruoyi/ruoyi-resource:2.4.1
|
|
image: ruoyi/ruoyi-resource:2.4.1
|
|
@@ -99,6 +111,8 @@ services:
|
|
|
- /home/docker/ruoyi-resource/logs/:/ruoyi/resource/logs
|
|
- /home/docker/ruoyi-resource/logs/:/ruoyi/resource/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 3g
|
|
|
|
|
+ memswap_limit: 3g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-product:
|
|
ruoyi-product:
|
|
|
image: ruoyi/ruoyi-product:2.4.1
|
|
image: ruoyi/ruoyi-product:2.4.1
|
|
@@ -113,6 +127,8 @@ services:
|
|
|
- /home/docker/ruoyi-product/logs/:/ruoyi/product/logs
|
|
- /home/docker/ruoyi-product/logs/:/ruoyi/product/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 4g
|
|
|
|
|
+ memswap_limit: 4g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-external:
|
|
ruoyi-external:
|
|
|
image: ruoyi/ruoyi-external:2.4.1
|
|
image: ruoyi/ruoyi-external:2.4.1
|
|
@@ -127,6 +143,8 @@ services:
|
|
|
- /home/docker/ruoyi-external/logs/:/ruoyi/external/logs
|
|
- /home/docker/ruoyi-external/logs/:/ruoyi/external/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 3g
|
|
|
|
|
+ memswap_limit: 3g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-order:
|
|
ruoyi-order:
|
|
|
image: ruoyi/ruoyi-order:2.4.1
|
|
image: ruoyi/ruoyi-order:2.4.1
|
|
@@ -141,6 +159,8 @@ services:
|
|
|
- /home/docker/ruoyi-order/logs/:/ruoyi/order/logs
|
|
- /home/docker/ruoyi-order/logs/:/ruoyi/order/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 4g
|
|
|
|
|
+ memswap_limit: 4g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-customer:
|
|
ruoyi-customer:
|
|
|
image: ruoyi/ruoyi-customer:2.4.1
|
|
image: ruoyi/ruoyi-customer:2.4.1
|
|
@@ -155,6 +175,8 @@ services:
|
|
|
- /home/docker/ruoyi-customer/logs/:/ruoyi/customer/logs
|
|
- /home/docker/ruoyi-customer/logs/:/ruoyi/customer/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 3g
|
|
|
|
|
+ memswap_limit: 3g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-bill:
|
|
ruoyi-bill:
|
|
|
image: ruoyi/ruoyi-bill:2.4.1
|
|
image: ruoyi/ruoyi-bill:2.4.1
|
|
@@ -169,6 +191,8 @@ services:
|
|
|
- /home/docker/ruoyi-bill/logs/:/ruoyi/bill/logs
|
|
- /home/docker/ruoyi-bill/logs/:/ruoyi/bill/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 2g
|
|
|
|
|
+ memswap_limit: 2g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
|
|
|
ruoyi-mall:
|
|
ruoyi-mall:
|
|
|
image: ruoyi/ruoyi-mall:2.4.1
|
|
image: ruoyi/ruoyi-mall:2.4.1
|
|
@@ -183,3 +207,6 @@ services:
|
|
|
- /home/docker/ruoyi-mall/logs/:/ruoyi/mall/logs
|
|
- /home/docker/ruoyi-mall/logs/:/ruoyi/mall/logs
|
|
|
privileged: true
|
|
privileged: true
|
|
|
network_mode: "host"
|
|
network_mode: "host"
|
|
|
|
|
+ mem_limit: 2g
|
|
|
|
|
+ memswap_limit: 2g # 禁止使用 Swap,避免磁盘 I/O 飙升
|
|
|
|
|
+
|