1 Star 0 Fork 448

jun/jvs

forked from JVS/jvs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 2.56 KB
一键复制 编辑 原始数据 按行查看 历史
郭静 提交于 2021-12-30 10:30 . 修改部署方式
version: '3'
services:
jvs-mysql:
image: mysql:5.7
container_name: jvs-mysql
volumes:
- ./data/mysql/:/var/lib/mysql
- ./mysql:/docker-entrypoint-initdb.d
# 挂载配置文件目录
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_ROOT_HOST=%
- TZ=Asia/Shanghai
ports:
- "3306:3306"
restart: always
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --lower_case_table_names=1 --max_connections=1024
networks:
- jvs
jvs-nacos:
image: nacos/nacos-server:2.0.0
container_name: jvs-nacos
environment:
- MODE=standalone
- MYSQL_SERVICE_DB_NAME=nacos
- MYSQL_SERVICE_HOST=jvs-mysql
- MYSQL_SERVICE_PASSWORD=root
- MYSQL_SERVICE_PORT=3306
- MYSQL_SERVICE_USER=root
- NACOS_APPLICATION_PORT=8848
- PREFER_HOST_MODE=hostname
- SPRING_DATASOURCE_PLATFORM=mysql
restart: always
ports:
- "8848:8848"
networks:
- jvs
jvs-minio:
image: minio/minio
container_name: jvs-minio
environment:
- MINIO_ROOT_USER=miniominio
- MINIO_ROOT_PASSWORD=miniominio
- TZ=Asia/Shanghai
volumes:
- ./data/minio/:/data
ports:
- 9000:9000
- 9001:9001
command: server /data --console-address ':9001'
networks:
- jvs
jvs-redis:
container_name: jvs-redis
image: redis:5.0.8
restart: always
ports:
- 6379:6379
networks:
- jvs
elasticsearch:
container_name: elasticsearch
image: elasticsearch:7.4.2
restart: always
environment:
- discovery.type=single-node
- TZ=Asia/Shanghai
volumes:
- ./data/elasticsearch/:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- jvs
gateway:
build:
context: ./jvs-gateway-parent/jvs-gateway
restart: always
container_name: gateway
image: 0glg0/gateway:${JVSVERSION}
volumes:
- ./data/nacos/:/root/nacos/config
ports:
- 10000:10000
networks:
- jvs
jvs-auth-mgr:
build:
context: ./jvs-auth-parent/jvs-auth-mgr
restart: always
image: 0glg0/jvs-auth-mgr:${JVSVERSION}
container_name: jvs-auth-mgr
volumes:
- ./data/nacos/:/root/nacos/config
networks:
- jvs
jvs-auth:
build:
context: ./jvs-auth-parent/jvs-auth
restart: always
image: 0glg0/jvs-auth:${JVSVERSION}
container_name: jvs-auth
volumes:
- ./data/nacos/:/root/nacos/config
networks:
- jvs
#桥接网络
networks:
jvs:
driver: bridge
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/bjdaijun/jvs.git
git@gitee.com:bjdaijun/jvs.git
bjdaijun
jvs
jvs
master

搜索帮助