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