fix: 将服务端口从8000系列改为18000系列以避免冲突
This commit is contained in:
parent
92029b89e9
commit
3e358bfa03
@ -2,7 +2,7 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"address": "data-service",
|
"address": "data-service",
|
||||||
"check": {
|
"check": {
|
||||||
"http": "http://10.195.102.127:8000/api/public/stock_bid_ask_em?symbol=000001",
|
"http": "http://10.195.102.127:18000/api/public/stock_bid_ask_em?symbol=000001",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
"timeout": "5s"
|
"timeout": "5s"
|
||||||
},
|
},
|
||||||
@ -16,6 +16,6 @@
|
|||||||
"traefik.http.routers.data-service.middlewares=data-service-stripprefix@consulcatalog"
|
"traefik.http.routers.data-service.middlewares=data-service-stripprefix@consulcatalog"
|
||||||
],
|
],
|
||||||
"name": "data-service",
|
"name": "data-service",
|
||||||
"port": 8000
|
"port": 18000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"address": "emotion-service",
|
"address": "emotion-service",
|
||||||
"check": {
|
"check": {
|
||||||
"http": "http://10.195.102.127:8002/health",
|
"http": "http://10.195.102.127:18002/health",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
"timeout": "5s"
|
"timeout": "5s"
|
||||||
},
|
},
|
||||||
@ -15,6 +15,6 @@
|
|||||||
"traefik.http.routers.emotion-service.middlewares=emotion-service-stripprefix@consulcatalog"
|
"traefik.http.routers.emotion-service.middlewares=emotion-service-stripprefix@consulcatalog"
|
||||||
],
|
],
|
||||||
"name": "emotion-service",
|
"name": "emotion-service",
|
||||||
"port": 8002
|
"port": 18002
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"address": "frontend",
|
"address": "frontend",
|
||||||
"check": {
|
"check": {
|
||||||
"http": "http://10.195.102.127:8080/",
|
"http": "http://10.195.102.127:180/",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
"timeout": "5s"
|
"timeout": "5s"
|
||||||
},
|
},
|
||||||
@ -14,6 +14,6 @@
|
|||||||
"traefik.http.routers.frontend.entrypoints=web"
|
"traefik.http.routers.frontend.entrypoints=web"
|
||||||
],
|
],
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"port": 80
|
"port": 180
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"address": "quant-service",
|
"address": "quant-service",
|
||||||
"check": {
|
"check": {
|
||||||
"http": "http://10.195.102.127:8001/health",
|
"http": "http://10.195.102.127:18001/health",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
"timeout": "5s"
|
"timeout": "5s"
|
||||||
},
|
},
|
||||||
@ -15,6 +15,6 @@
|
|||||||
"traefik.http.routers.quant-service.middlewares=quant-service-stripprefix@consulcatalog"
|
"traefik.http.routers.quant-service.middlewares=quant-service-stripprefix@consulcatalog"
|
||||||
],
|
],
|
||||||
"name": "quant-service",
|
"name": "quant-service",
|
||||||
"port": 8001
|
"port": 18001
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"address": "recommend-service",
|
"address": "recommend-service",
|
||||||
"check": {
|
"check": {
|
||||||
"http": "http://10.195.102.127:8003/health",
|
"http": "http://10.195.102.127:18003/health",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
"timeout": "5s"
|
"timeout": "5s"
|
||||||
},
|
},
|
||||||
@ -15,6 +15,6 @@
|
|||||||
"traefik.http.routers.recommend-service.middlewares=recommend-service-stripprefix@consulcatalog"
|
"traefik.http.routers.recommend-service.middlewares=recommend-service-stripprefix@consulcatalog"
|
||||||
],
|
],
|
||||||
"name": "recommend-service",
|
"name": "recommend-service",
|
||||||
"port": 8003
|
"port": 18003
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"service": {
|
"service": {
|
||||||
"address": "user-service",
|
"address": "user-service",
|
||||||
"check": {
|
"check": {
|
||||||
"http": "http://10.195.102.127:8004/health",
|
"http": "http://10.195.102.127:18004/health",
|
||||||
"interval": "10s",
|
"interval": "10s",
|
||||||
"timeout": "5s"
|
"timeout": "5s"
|
||||||
},
|
},
|
||||||
@ -15,6 +15,6 @@
|
|||||||
"traefik.http.routers.user-service.middlewares=user-service-stripprefix@consulcatalog"
|
"traefik.http.routers.user-service.middlewares=user-service-stripprefix@consulcatalog"
|
||||||
],
|
],
|
||||||
"name": "user-service",
|
"name": "user-service",
|
||||||
"port": 8004
|
"port": 18004
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -10,7 +10,7 @@ services:
|
|||||||
container_name: ari-data-service
|
container_name: ari-data-service
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "18000:8000"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
environment:
|
environment:
|
||||||
@ -23,7 +23,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "8001"
|
- "8001"
|
||||||
ports:
|
ports:
|
||||||
- "8001:8001"
|
- "18001:8001"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
environment:
|
environment:
|
||||||
@ -36,7 +36,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "8002"
|
- "8002"
|
||||||
ports:
|
ports:
|
||||||
- "8002:8002"
|
- "18002:8002"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
environment:
|
environment:
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "8003"
|
- "8003"
|
||||||
ports:
|
ports:
|
||||||
- "8003:8003"
|
- "18003:8003"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
environment:
|
environment:
|
||||||
@ -62,7 +62,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "8004"
|
- "8004"
|
||||||
ports:
|
ports:
|
||||||
- "8004:8004"
|
- "18004:8004"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
environment:
|
environment:
|
||||||
@ -82,7 +82,7 @@ services:
|
|||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "180:80"
|
||||||
networks:
|
networks:
|
||||||
- microservice-network
|
- microservice-network
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user