代码拉取完成,页面将自动刷新
同步操作将从 王令/example-cloud 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: '3.8'
services:
example-redis:
image: redis:latest
container_name: example-redis # 容器名
ports: # 端口映射
- '6379:6379'
networks:
- app
example-mysql:
image: mysql:8.0
container_name: example-mysql
environment: # 环境变量
MYSQL_ROOT_PASSWORD: 123456 # root账户密码
ports:
- '3306:3306'
volumes:
- ./volumes/mysql/data:/var/lib/mysql
networks:
- app
example-nacos:
image: nacos/nacos-server:1.4.1
container_name: example-nacos
depends_on:
- example-mysql
environment:
PREFER_HOST_MODE: 'hostname' # 如果支持主机名可以使用hostname,否则使用ip,默认也是ip
MODE: 'standalone' # 单机模式启动
SPRING_DATASOURCE_PLATFORM: 'mysql'
MYSQL_SERVICE_HOST: example-mysql # 数据库ip
MYSQL_SERVICE_PORT: 3306 # 数据库端口
MYSQL_DATABASE_NUM: 1
MYSQL_SERVICE_DB_NAME: 'example-nacos'
MYSQL_SERVICE_USER: 'root'
MYSQL_SERVICE_PASSWORD: '123456'
MYSQL_SERVICE_DB_PARAM: 'characterEncoding=utf8&connectTimeout=2000&allowPublicKeyRetrieval=true&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC'
JVM_XMS: '256m'
JVM_XMX: '256m'
ports:
- '8848:8848'
volumes:
- ./volumes/nacos/logs:/home/nacos/logs
networks:
- app
example-minio:
image: minio/minio:latest
container_name: example-minio
ports:
- '9000:9000'
- '9001:9001'
environment:
- MINIO_ROOT_USER=admin
- MINIO_ROOT_PASSWORD=admin123
volumes:
- ./volumes/minio/data:/data
command: [ 'server', '/data', '--console-address', ':9001' ]
networks:
- app
example-gateway:
container_name: example-gateway
build:
context: ./example-gateway/
depends_on:
- example-nacos
ports:
- '2022:2022'
networks:
- app
example-system:
container_name: example-system
build:
context: ./example-system/
depends_on:
- example-gateway
ports:
- '2000:2000'
networks:
- app
example-auth:
container_name: example-auth
build:
context: ./example-auth/
depends_on:
- example-gateway
- example-system
ports:
- '3000:3000'
networks:
- app
example-storage:
container_name: example-storage
build:
context: ./example-storage/
depends_on:
- example-gateway
ports:
- '2900:2900'
networks:
- app
example-monitor:
container_name: example-monitor
build:
context: ./example-monitor/
depends_on:
- example-gateway
- example-system
- example-auth
- example-storage
ports:
- '2110:2110'
networks:
- app
networks:
app:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。