# TmsMicroservices **Repository Path**: zuoann/tms-microservices ## Basic Information - **Project Name**: TmsMicroservices - **Description**: .net 7 微服务框架 - **Primary Language**: C# - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-05-31 - **Last Updated**: 2025-09-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微服务 #doc: ``` 文件服务:5001 5002 用户服务:5003 5004 业务服务:5005 5006 文件服务 docker run -itd --name file_service2 -p 5002:80 -v /root/wwwroot/smart/file2:/app -v /root/wwwroot/smart/file2/log:/app/log -w /app/ aspnet:7.0 dotnet /app/Furion.Web.Entry.dll docker run -itd --name file_service1 -p 5001:80 -v /root/wwwroot/smart/file:/app -v /root/wwwroot/smart/file/log:/app/log -w /app/ aspnet:7.0 dotnet /app/Furion.Web.Entry.dll 用户服务 docker image build -f ./Furion.Web.Entry/Dockerfile -t user_service . docker run -d -p 5003:80 --name user_service1 user_service --ConsulRegisterOptions:Port="5003" docker run -d -p 5004:80 --name user_service2 user_service --ConsulRegisterOptions:Port="5004" 业务服务 docker image build -f ./Furion.Web.Entry/Dockerfile -t business_service . docker run -d -p 5005:80 --name business_service1 business_service --ConsulRegisterOptions:Port="5005" docker run -d -p 5006:80 --name business_service2 business_service --ConsulRegisterOptions:Port="5006" 网关与验证 docker run -itd --name gateway_private1 -p 8000:80 -v /root/wwwroot/smart/PrivateGateway:/app -w /app/ aspnet:7.0 dotnet /app/PrivateGateway.dll docker run -itd --name auth_private1 -p 1449:80 -v /root/wwwroot/smart/IdentityServer4CenterPassword:/app -w /app/ aspnet:7.0 dotnet /app/IdentityServer4CenterPassword.dll ``` #Dockerfile ``` #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY ["Furion.Web.Entry/Furion.Web.Entry.csproj", "Furion.Web.Entry/"] COPY ["Furion.Web.Core/Furion.Web.Core.csproj", "Furion.Web.Core/"] COPY ["Furion.EntityFramework.Core/Furion.EntityFramework.Core.csproj", "Furion.EntityFramework.Core/"] COPY ["Furion.Database.Migrations/Furion.Database.Migrations.csproj", "Furion.Database.Migrations/"] COPY ["Furion.Core/Furion.Core.csproj", "Furion.Core/"] COPY ["Furion.Application/Furion.Application.csproj", "Furion.Application/"] RUN dotnet restore "Furion.Web.Entry/Furion.Web.Entry.csproj" COPY . . WORKDIR "/src/Furion.Web.Entry" RUN dotnet build "Furion.Web.Entry.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "Furion.Web.Entry.csproj" -c Release -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Furion.Web.Entry.dll"] ```