lianshufeng 1 an în urmă
părinte
comite
cca5719917

+ 1 - 1
angel/buildHelper/src/main/resources/application.yml

@@ -1,7 +1,7 @@
 #需要处理的环境
 spring:
   profiles:
-    active: dev
+    active: local
   thymeleaf:
     suffix: .html
     mode: HTML

+ 19 - 1
angel/docker/standalone/middleware/docker-compose.yml

@@ -129,7 +129,7 @@ services:
   msconfig:
     image: lianshufeng/springboot:jdk17
     ports:
-      - "8080:8080"
+      - "8000:8080"
     volumes:
       - "./config:/opt/jar/"
     working_dir: /opt/jar
@@ -142,6 +142,24 @@ services:
       - consul_node
     networks:
       - ms_net
+   
+  #微服务-网关
+  msgateway:
+    image: lianshufeng/springboot:jdk17
+    ports:
+      - "8080:80"
+    volumes:
+      - "./gateway:/opt/jar/"
+    working_dir: /opt/jar
+    container_name: msgateway
+    restart: always
+    environment:
+      - UpdateResources=${ResourcesUrl}/resources/app/Gateway-1.0.0-SNAPSHOT.jar
+    command: nohup java -Dfile.encoding=UTF-8 -Xmx800m -Xms200m -Duser.timezone=GMT+8 -Dspring.profiles.active=dev -jar Gateway-1.0.0-SNAPSHOT.jar
+    depends_on:
+      - msconfig
+    networks:
+      - ms_net
       
       
 

+ 4 - 4
super/MSConfigure/pom.xml

@@ -142,10 +142,10 @@
             <properties>
                 <spring.profiles.active>local</spring.profiles.active>
 
-                <ApplicationCenter.url>127.0.0.1:8500</ApplicationCenter.url>
-                <ConfigCenter.url>http://127.0.0.1:${ConfigCenter.port}</ConfigCenter.url>
-                <Kafka.brokers>127.0.0.1:9092</Kafka.brokers>
-                <Zipkin.baseUrl>http://127.0.0.1:9411</Zipkin.baseUrl>
+                <ApplicationCenter.url>192.168.31.98:8500</ApplicationCenter.url>
+                <ConfigCenter.url>http://192.168.31.98:${ConfigCenter.port}</ConfigCenter.url>
+                <Kafka.brokers>192.168.31.98:9092</Kafka.brokers>
+                <Zipkin.baseUrl>http://192.168.31.98:9411</Zipkin.baseUrl>
                 <Zipkin.sampler.probability>0.01</Zipkin.sampler.probability>
             </properties>
         </profile>