Skip to content

Commit

Permalink
updated docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
mizrael committed Jun 15, 2024
1 parent a832471 commit 312d745
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
9 changes: 9 additions & 0 deletions Dockerfile.adminui
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /src
COPY ./ ./
RUN cd ./src/EvenireDB.AdminUI && dotnet restore && dotnet publish -c Release -o /publish

FROM mcr.microsoft.com/dotnet/aspnet:8.0 as runtime
COPY --from=build-env /publish .
ENTRYPOINT ["dotnet", "EvenireDB.AdminUI.dll"]
EXPOSE 80
File renamed without changes.
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ services:
image: eveniredb:latest
restart: always
ports:
- 80:80
- 32154:80
volumes:
- './volumes/eveniredb/data/:/data'
eveniredb-adminui:
image: eveniredb-adminui:latest
restart: always
ports:
- 32160:8080
environment:
- Evenire:HttpSettings:Port=32154
5 changes: 4 additions & 1 deletion scripts/dockerize.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ $oldPath = $PWD.Path
$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Definition
$rootPath = Join-Path $scriptPath "..\"
cd $rootPath
docker build -t "eveniredb:$version" -f Dockerfile --build-arg SERVER_PORT=$serverPort .
docker build -t "eveniredb:$version" -f "Dockerfile.server" --build-arg SERVER_PORT=$serverPort .
docker tag "eveniredb:$version" "eveniredb:latest"

docker build -t "eveniredb-adminui:$version" -f "Dockerfile.adminui" --build-arg SERVER_PORT=$serverPort .
docker tag "eveniredb-adminui:$version" "eveniredb-adminui:latest"
cd $oldPath
9 changes: 9 additions & 0 deletions src/EvenireDB.AdminUI/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@
"Microsoft.AspNetCore": "Warning"
}
},
"Evenire": {
"ServerUri": "http://localhost",
"HttpSettings": {
"Port": 5001
},
"GrpcSettings": {
"Port": 5243
}
},
"AllowedHosts": "*"
}

0 comments on commit 312d745

Please sign in to comment.