fanxp 1 year ago
parent
commit
13237cd992
1 changed files with 5 additions and 0 deletions
  1. 5 0
      docker-compose.yml

+ 5 - 0
docker-compose.yml

@@ -13,6 +13,11 @@ services:
       - MQTT_CLIENT-ID=tl
     networks:
       - docker_networks_default
+    deploy:
+      resources:
+        limits:
+          cpus: 0.50
+          memory: 2048M
     labels:
       - "traefik.http.routers.tl_api.rule=Host(`test.tl.api.yingcaibx.com`)"
       - "traefik.http.routers.tl_api.entrypoints=websecure"