mirror of
https://gitee.com/novel_dev_team/novel-cloud
synced 2026-07-20 17:55:01 +08:00
chore: 编排所有微服务
This commit is contained in:
@@ -142,17 +142,145 @@ services:
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-gateway:
|
||||
build: ./novel-gateway
|
||||
image: novel-gateway:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-gateway
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "8888:8888"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-home-service:
|
||||
build: ./novel-home-service
|
||||
image: novel-home-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-home-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9001:9001"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-news-service:
|
||||
build: ./novel-news-service
|
||||
image: novel-news-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-news-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9030:9030"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-book-service:
|
||||
build: ./novel-book-service
|
||||
image: novel-book-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-book-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9020:9020"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-user-service:
|
||||
build: ./novel-user-service
|
||||
image: novel-user-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-user-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9060:9060"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-search-service:
|
||||
build: ./novel-search-service
|
||||
image: novel-search-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-search-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9050:9050"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-resource-service:
|
||||
build: ./novel-resource-service
|
||||
image: novel-resource-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-resource-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9040:9040"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-author-service:
|
||||
build: ./novel-author-service
|
||||
image: novel-author-service:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-author-service
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "9010:9010"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
novel-monitor:
|
||||
build: ./novel-monitor
|
||||
image: novel-monitor:2.0.1
|
||||
image: novel-monitor:${NOVEL_CLOUD_VERSION}
|
||||
container_name: novel-monitor
|
||||
restart: "always"
|
||||
environment:
|
||||
- JAR_VERSION=${NOVEL_CLOUD_VERSION}
|
||||
- NACOS_ADDR=novel-nacos-server:8848
|
||||
ports:
|
||||
- "8898:8898"
|
||||
depends_on:
|
||||
- novel-nacos-server
|
||||
- novel-gateway
|
||||
- novel-home-service
|
||||
- novel-author-service
|
||||
- novel-book-service
|
||||
- novel-search-service
|
||||
- novel-user-service
|
||||
- novel-resource-service
|
||||
- novel-news-service
|
||||
networks:
|
||||
- novelnet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user