0 Star 0 Fork 0

江湖小小白/MySpringCloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 2.68 KB
一键复制 编辑 原始数据 按行查看 历史
江湖小小白 提交于 2023-12-28 17:22 . seata config and sentinel config
version: "3.8" # https://docs.docker.com/compose/compose-file/compose-versioning
services:
mysql:
build:
context: ./db
restart: always
container_name: mysql-server
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
healthcheck:
test: "mysql --user=nacos --password=nacos --execute \"SHOW DATABASES;\""
redis:
restart: always
image: redis:alpine
container_name: redis-server
command: redis-server --requirepass redis --maxmemory 1gb --maxmemory-policy allkeys-lru
ports:
- "6379:6379"
nacos:
restart: always
image: nacos/nacos-server:v2.3.0-slim
container_name: nacos-server
environment:
MODE: standalone
SPRING_DATASOURCE_PLATFORM: mysql
MYSQL_SERVICE_HOST: mysql-server
MYSQL_SERVICE_DB_NAME: nacos
MYSQL_SERVICE_USER: nacos
MYSQL_SERVICE_PASSWORD: nacos
NACOS_AUTH_ENABLE: true
NACOS_AUTH_TOKEN: SecretKey012345678901234567890123456789012345678901234567890123456789
NACOS_AUTH_IDENTITY_KEY: serverIdentity
NACOS_AUTH_IDENTITY_VALUE: security
ports:
- "8848:8848"
- "9848:9848"
depends_on: # https://docs.docker.com/compose/startup-order
mysql:
condition: service_healthy
sentinel:
build:
context: ./visual/sentinel
restart: always
container_name: sentinel-server
ports:
- "5003:8080"
xxljob:
restart: always
image: xuxueli/xxl-job-admin:2.4.0
container_name: xxljob-server
environment:
PARAMS: "--spring.datasource.username=xxl_job --spring.datasource.password=xxl_job --spring.datasource.url=jdbc:mysql://mysql-server:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai"
ports:
- "5004:8080" # /xxl-job-admin,admin/123456
depends_on: # https://docs.docker.com/compose/startup-order
mysql:
condition: service_healthy
seata:
build:
context: ./visual/seata
restart: always
image: seataio/seata-server
container_name: seata-server
environment:
SEATA_IP: 172.17.93.183 # 可选,指定向注册中心注册时的 IP
ports:
- "7091:7091" # seata/seata
- "8091:8091"
minio:
restart: always
image: quay.io/minio/minio
container_name: minio-server
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
ports:
- "9000:9000"
- "9090:9090"
command: server /data --console-address :9090
auth:
build:
context: ./auth
restart: always
container_name: auth-server
networks: # https://docs.docker.com/compose/networking
default:
name: myspringcloud
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jhxxb/MySpringCloud.git
git@gitee.com:jhxxb/MySpringCloud.git
jhxxb
MySpringCloud
MySpringCloud
master

搜索帮助