代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。