docker compose
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Protobuf Include="E:\_hushian\Common\Protos\aia.proto" OutputDir="%(RelativePath)models/" />
|
||||
<Protobuf Include="..\..\Common\Protos\aia.proto" OutputDir="%(RelativePath)models/" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Hushian.Application\Hushian.Application.csproj" />
|
||||
|
@@ -1,3 +1,3 @@
|
||||
docker build -t ai_assistance:v1 .
|
||||
|
||||
docker run --name openai_assistance -d -p 5042:5010 [IMAGEID]
|
||||
docker run --name openai_assistance -d -p 5042:5010 ai_assistance:v1
|
@@ -1,3 +1,3 @@
|
||||
E:\_hushian> docker build -f Presentation\Hushian.WebApi\Dockerfile -t hushianapi .
|
||||
|
||||
docker run --name hushian_api -d -p 8080:8080 [imageid]
|
||||
docker run --name hushian_api -d -p 8080:8080 hushianapi
|
@@ -18,7 +18,7 @@
|
||||
|
||||
},
|
||||
"aigrpcserver": {
|
||||
"target": "localhost:5042"
|
||||
"target": "192.168.1.12:5011"
|
||||
|
||||
|
||||
},
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"BaseAddress": "http://localhost:5089/api/",
|
||||
"BaseAddress": "http://192.168.1.12:1011/api/",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
|
52
docker-compose.yml
Normal file
52
docker-compose.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
version: '3.9'
|
||||
|
||||
services:
|
||||
aiass:
|
||||
build:
|
||||
context: ./Presentation/AIAss
|
||||
dockerfile: Dockerfile
|
||||
image: aiass:latest
|
||||
container_name: aiass
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
- ASPNETCORE_URLS=http://+:5010
|
||||
ports:
|
||||
- "5011:5010"
|
||||
networks:
|
||||
- hushainnet
|
||||
- aiassnet
|
||||
|
||||
webapi:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Presentation/Hushian.WebApi/Dockerfile
|
||||
image: hushian.webapi:latest
|
||||
container_name: hushian-webapi
|
||||
environment:
|
||||
- ASPNETCORE_ENVIRONMENT=Production
|
||||
ports:
|
||||
- "1011:8080"
|
||||
- "1012:8081"
|
||||
networks:
|
||||
- hushainnet
|
||||
|
||||
webapp:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Presentation/HushianWebApp/Dockerfile
|
||||
image: hushian.webapp:latest
|
||||
container_name: hushian-webapp
|
||||
ports:
|
||||
- "80:5165"
|
||||
depends_on:
|
||||
- webapi
|
||||
networks:
|
||||
- hushainnet
|
||||
|
||||
networks:
|
||||
hushainnet:
|
||||
name: hushainnet
|
||||
aiassnet:
|
||||
name: aiassnet
|
||||
|
||||
|
Reference in New Issue
Block a user