Browse Source

nginx 添加link 链接

liwei 2 years ago
parent
commit
45c6ee97e2
1 changed files with 8 additions and 0 deletions
  1. 8 0
      docker-compose.yaml

+ 8 - 0
docker-compose.yaml

@@ -18,6 +18,14 @@ services:
       - ./nginx/conf.d:/etc/nginx/conf.d
       - ./nginx/www:/usr/share/nginx/html
 
+    links:
+      - box-cost
+      - box-usercenter
+      
+    depends_on:
+      - box-cost
+      - box-usercenter
+
   #bus消息中间件
   box-bus:
     restart: always