Remove Redis dependency
This commit is contained in:
parent
bf69b55d4d
commit
c370ce5b5c
|
@ -7,12 +7,10 @@
|
|||
},
|
||||
"AllowedHosts": "*",
|
||||
"ConnectionStringDocker": {
|
||||
"MySQL": "server=db;user=blueuser;password=dXjw127124dJ;database=bluedb;",
|
||||
"Redis": "redis://redisinstance:6379"
|
||||
"MySQL": "server=db;user=blueuser;password=dXjw127124dJ;database=bluedb;"
|
||||
},
|
||||
"ConnectionStringNoDocker": {
|
||||
"MySQL": "server=localhost;user=blueuser;password=dXjw127124dJ;database=bluedb;",
|
||||
"Redis": "redis://localhost:6379"
|
||||
"MySQL": "server=localhost;user=blueuser;password=dXjw127124dJ;database=bluedb;"
|
||||
},
|
||||
"AuthSettings": {
|
||||
"SecretKey": "iJWHDmHLpUA283sqsfhqGbMRdRj1PVkH"
|
||||
|
|
|
@ -5,16 +5,16 @@ EXPOSE 443
|
|||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["BlueWest.Views/BlueWest.Views.csproj", "BlueWest.Views/"]
|
||||
RUN dotnet restore "BlueWest.Views/BlueWest.Views.csproj"
|
||||
COPY ["CodeLiturgy.Views/CodeLiturgy.Views.csproj", "CodeLiturgy.Views/"]
|
||||
RUN dotnet restore "CodeLiturgy.Views/CodeLiturgy.Views.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/BlueWest.Views"
|
||||
RUN dotnet build "BlueWest.Views.csproj" -c Release -o /app/build
|
||||
WORKDIR "/src/CodeLiturgy.Views"
|
||||
RUN dotnet build "CodeLiturgy.Views.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "BlueWest.Views.csproj" -c Release -o /app/publish
|
||||
RUN dotnet publish "CodeLiturgy.Views.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "BlueWest.Views.dll"]
|
||||
ENTRYPOINT ["dotnet", "CodeLiturgy.Views.dll"]
|
||||
|
|
|
@ -8,11 +8,9 @@
|
|||
"mode": "no-docker",
|
||||
"AllowedHosts": "*",
|
||||
"ConnectionStringDocker": {
|
||||
"Redis": "redis://redisinstance:6379",
|
||||
"MySQL": "server=db;user=blueuser;password=dXjw127124dJ;database=bluedb;"
|
||||
},
|
||||
"ConnectionStringNoDocker": {
|
||||
"Redis": "redis://localhost:6379",
|
||||
"MySQL": "server=localhost;user=blueuser;password=dXjw127124dJ;database=bluedb;"
|
||||
},
|
||||
"AuthSettings": {
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# BlueWest Project
|
||||
# CodeLiturgy Dashboard
|
||||
|
||||
Dashboard for managing sites, this includes setting up an environments.
|
||||
|
||||
## Using docker
|
||||
|
||||
|
|
|
@ -14,8 +14,4 @@ services:
|
|||
- "3306:3306"
|
||||
volumes:
|
||||
- ./docker-entrypoint-initdb.d/:/docker-entrypoint-initdb.d/
|
||||
redis-instance:
|
||||
image: "redislabs/redismod"
|
||||
ports:
|
||||
- "6379:6379"
|
||||
container_name: BW1_REDIS
|
||||
|
||||
|
|
Loading…
Reference in New Issue