加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-base.yml 2.95 KB
一键复制 编辑 原始数据 按行查看 历史
white 提交于 2024-07-15 18:00 . 部署步骤
version: '3'
services:
#后台服务
jvs-ui:
restart: always
image: ${dockerName}/jvs-ui:${JVSVERSION}
container_name: jvs-ui
volumes:
- ./data/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 8088:80
#网关
jvs-gateway:
restart: always
image: ${dockerName}/jvs-gateway:${JVSVERSION}
container_name: gateway
environment:
nacosAddr: ${nacosAddr}
namespace: ${namespace}
skyip: ${skyip}
authentication: ${authentication}
skywalkingPath: ${skywalkingPath}
JAVA_OPTS: -Xms125m -Xmx2024m
volumes:
- ./data/nacos/:/root/nacos/config
- ./data/log/:/log
- ./data/icon/:/icon
ports:
- 10000:10000
#授权管理
jvs-auth-mgr:
restart: always
image: ${dockerName}/jvs-auth-mgr:${JVSVERSION}
container_name: jvs-auth-mgr
environment:
nacosAddr: ${nacosAddr}
namespace: ${namespace}
skyip: ${skyip}
authentication: ${authentication}
skywalkingPath: ${skywalkingPath}
JAVA_OPTS: ${JAVA_OPTS} -Dserver.port=3001
volumes:
- ./data/nacos/:/root/nacos/config
- ./data/log/:/log
ports:
- 3001:3001
#授权中心
jvs-auth:
restart: always
image: ${dockerName}/jvs-auth:${JVSVERSION}
container_name: jvs-auth
environment:
nacosAddr: ${nacosAddr}
namespace: ${namespace}
skyip: ${skyip}
authentication: ${authentication}
skywalkingPath: ${skywalkingPath}
JAVA_OPTS: ${JAVA_OPTS}
volumes:
- ./data/nacos/:/root/nacos/config
- ./data/log/:/log
ports:
- 31000:31000
#定时任务服务
jvs-xxl-job-admin:
restart: always
image: ${dockerName}/jvs-xxl-job-admin:${JVSVERSION}
container_name: jvs-xxl-job-admin
environment:
nacosAddr: ${nacosAddr}
namespace: ${namespace}
skyip: ${skyip}
authentication: ${authentication}
skywalkingPath: ${skywalkingPath}
JAVA_OPTS: ${JAVA_OPTS}
volumes:
- ./data/nacos/:/root/nacos/config
- ./data/log/:/log
ports:
- 9090:9090
#消息管理
jvs-message-mgr:
restart: always
image: ${dockerName}/jvs-message-push:${JVSVERSION}
container_name: jvs-message-push
environment:
nacosAddr: ${nacosAddr}
namespace: ${namespace}
skyip: ${skyip}
authentication: ${authentication}
skywalkingPath: ${skywalkingPath}
JAVA_OPTS: ${JAVA_OPTS} -Dserver.port=48080
ports:
- 48080:48080
volumes:
- ./data/nacos/:/root/nacos/config
- ./data/log/:/log
#demo
jvs-demo-mgr:
restart: always
image: ${dockerName}/jvs-demo-mgr:${JVSVERSION}
container_name: jvs-demo-mgr
environment:
nacosAddr: ${nacosAddr}
namespace: ${namespace}
JAVA_OPTS: ${JAVA_OPTS}
ports:
- 32000:32000
volumes:
- ./data/nacos/:/root/nacos/config
- ./data/log/:/log
networks:
proxy:
ipam:
config:
- subnet: 10.0.0.1/24
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化