1 Star 0 Fork 447

sdBruLi/jvs

forked from JVS/jvs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose.yml 2.71 KB
一键复制 编辑 原始数据 按行查看 历史
郭静 提交于 2021-12-16 17:20 . init
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
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
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: gateway
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: jvs-auth-mgr
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: jvs-auth
container_name: jvs-auth
volumes:
- ./data/nacos/:/root/nacos/config
networks:
- jvs
jvs-apply-document:
build:
context: ./jvs-apply/jvs-apply-document/document-mgr
restart: always
volumes:
- ./data/nacos/:/root/nacos/config
image: jvs-apply-document
container_name: jvs-apply-document
networks:
- jvs
#桥接网络
networks:
jvs:
driver: bridge
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sdBruLi/jvs.git
git@gitee.com:sdBruLi/jvs.git
sdBruLi
jvs
jvs
master

搜索帮助