代码拉取完成,页面将自动刷新
version: '3'
services:
# lmay-mysql:
# build:
# context: ./db
# image: lmay-mysql
# container_name: lmay-mysql
# restart: "no"
# hostname: lmay-mysql
# environment:
# MYSQL_ROOT_PASSWORD: root
# MYSQL_ROOT_HOST: '%'
# ports:
# - 3306:3306
#
# lmay-redis:
# image: redis:6.2.3
# container_name: lmay-redis
# restart: "no"
# hostname: lmay-redis
# ports:
# - 6379:6379
# command: redis-server --requirepass 123456
# lmay-nacos:
# container_name: lmay-nacos
# image: zhusaidong/nacos-server-m1:2.0.3
# restart: "no"
# hostname: lmay-nacos
# ports:
# - 8848:8848
# # 客户端gRPC请求服务端端口,用于客户端向服务端发起连接和请求
# - 9848:9848
# environment:
# - PREFER_HOST_MODE=hostname
# - MODE=standalone
# - SPRING_DATASOURCE_PLATFORM=mysql
# - MYSQL_SERVICE_HOST=lmay-mysql
# - MYSQL_SERVICE_DB_NAME=nacos_db
# - MYSQL_SERVICE_PORT=3306
# - MYSQL_SERVICE_USER=root
# - MYSQL_SERVICE_PASSWORD=root
# depends_on:
# - lmay-mysql
ms-gateway-web:
build: ./ms-gateway/ms-gateway-web
image: lmay/ms-gateway-web
container_name: ms-gateway-web
restart: "no"
hostname: ms-gateway-web
ports:
- 80:80
environment:
- NACOS_SERVER
- REDIS_SERVER
- REDIS_PASSWORD
# depends_on:
# - lmay-redis
# - lmay-nacos
# networks:
# - internal_access
# - external_access
# ms-oauth:
# build:
# context: ./ms-services/ms-service-oauth
# image: lmay/ms-service-oauth
# container_name: ms-oauth
# restart: "no"
# hostname: ms-oauth
# ports:
# - 8002:8002
# depends_on:
# - lmay-mysql
# - lmay-redis
# - lmay-nacos
ms-service-user:
build: ./ms-services/ms-service-user
image: lmay/ms-service-user
container_name: ms-service-user
restart: "no"
hostname: ms-service-user
environment:
- MYSQL_SERVER
- NACOS_SERVER
- REDIS_SERVER
- REDIS_PASSWORD
# depends_on:
# - lmay-mysql
# - lmay-redis
# - lmay-nacos
#networks:
# default:
# external:
# name: net-lmay
#networks:
# internal_access:
# internal: true
# external_access:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。