1 Star 0 Fork 1

李田所法师/餐掌柜

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
Shuwq 提交于 2021-11-02 23:12 . 新增:客户功能
version: '3.5'
services:
#mysql数据库脚本
mysql:
image: mysql:5.7
container_name: mysql
restart: always
ports:
- 3306:3306
volumes:
- ./mysql/mydir:/mydir
- ./mysql/data:/var/lib/mysql
- ./mysql/conf/my.cnf:/etc/my.cnf
- ./mysql/source:/docker-entrypoint-initdb.d/
environment:
MYSQL_ROOT_PASSWORD: pass
networks:
extnetwork:
ipv4_address: 172.21.0.2
#nacos服务脚本
nacos:
image: nacos/nacos-server:1.4.0
container_name: nacos
restart: always
ports:
- "8848:8848"
environment:
SPRING_DATASOURCE_PLATFORM: mysql #数据源平台 仅支持mysql或不保存empty
MODE: standalone
MYSQL_SERVICE_HOST: mysql
MYSQL_SERVICE_DB_NAME: nacos
MYSQL_SERVICE_PORT: 3306
MYSQL_SERVICE_USER: root
MYSQL_SERVICE_PASSWORD: pass
NACOS_APPLICATION_PORT: 8848
JVM_XMS: 512m
JVM_MMS: 256m
JVM_XMN: 128m
networks:
extnetwork:
ipv4_address: 172.21.0.3
depends_on:
- mysql
#seata服务脚本
seata-server:
image: seataio/seata-server:1.3.0
container_name: seata-server
restart: always
ports:
- "9200:9200"
volumes:
- ./seata-server/config:/root/seata-config
environment:
SEATA_IP: 192.168.112.77
SEATA_CONFIG_NAME: file:/root/seata-config/registry
SEATA_PORT: 9200
networks:
extnetwork:
ipv4_address: 172.21.0.4
depends_on:
- nacos
#rabbitmq脚本
rabbitmq:
image: rabbitmq:3.8.3-management
container_name: rabbitmq
restart: always
ports:
- 15672:15672
- 5672:5672
volumes:
- ./rabbitmq/data:/var/lib/rabbitmq
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: pass
networks:
extnetwork:
ipv4_address: 172.21.0.5
xxl-job:
image: xuxueli/xxl-job-admin:2.1.2
container_name: xxl-job-admin
restart: always
ports:
- 8280:8080
volumes:
- ./xxl-job/data:/data/applogs
environment:
PARAMS: "--spring.datasource.url=jdbc:mysql://mysql:3306/xxl-job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai --spring.datasource.username=root --spring.datasource.password=pass"
networks:
extnetwork:
ipv4_address: 172.21.0.9
depends_on:
- mysql
redis:
image: redis:5.0.0
container_name: redis
restart: always
command: redis-server --requirepass pass
ports:
- 6379:6379
volumes:
- ./redis/data:/data
networks:
extnetwork:
ipv4_address: 172.21.0.10
sentinel:
image: bladex/sentinel-dashboard
container_name: sentinel
ports:
- 8858:8858
networks:
extnetwork:
ipv4_address: 172.21.0.12
# docker容器内网地址
networks:
extnetwork:
name: extnetwork
ipam:
config:
- subnet: 172.21.0.0/16
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/ywwy114514/food-shopkeeper.git
git@gitee.com:ywwy114514/food-shopkeeper.git
ywwy114514
food-shopkeeper
餐掌柜
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385