Changes
Build and Push Docker Images / build (push) Successful in 37s

This commit is contained in:
2026-05-04 21:02:35 +03:00
parent 34625ae242
commit fa1ef23c02
87 changed files with 3151 additions and 522 deletions
+72
View File
@@ -1,7 +1,74 @@
version: "3.8"
services:
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: myai-mssql
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD:-Your_strong_password123}
ports:
- "1433:1433"
volumes:
- myai-mssql-data:/var/opt/mssql
networks:
- myai-network
restart: unless-stopped
rag-api:
build:
context: ../rag-api
dockerfile: Dockerfile
container_name: myai-rag-api
depends_on:
- mssql
ports:
- "8081:8080"
env_file:
- .env
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_URLS=http://+:8080
- ConnectionStrings__RagDb=Server=mssql,1433;Database=MyAiRag;User Id=sa;Password=${MSSQL_SA_PASSWORD:-Your_strong_password123};TrustServerCertificate=True
- InternalApi__RequireApiKey=true
- InternalApi__ApiKey=${INTERNAL_API_KEY:-change-this-internal-key}
- Ai__Provider=${AI_PROVIDER:-OpenAI}
- Ai__OpenAI__ApiKey=${OPENAI_API_KEY:-}
- Ai__Ollama__BaseUrl=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
networks:
- myai-network
restart: unless-stopped
cv-matcher-api:
build:
context: ../cv-matcher-api
dockerfile: Dockerfile
container_name: myai-cv-matcher-api
depends_on:
- mssql
- rag-api
ports:
- "8082:8080"
env_file:
- .env
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_URLS=http://+:8080
- ConnectionStrings__CvMatcherDb=Server=mssql,1433;Database=MyAiCvMatcher;User Id=sa;Password=${MSSQL_SA_PASSWORD:-Your_strong_password123};TrustServerCertificate=True
- InternalApi__RequireApiKey=true
- InternalApi__ApiKey=${INTERNAL_API_KEY:-change-this-internal-key}
- RagApi__BaseUrl=http://rag-api:8080
- RagApi__InternalApiKey=${INTERNAL_API_KEY:-change-this-internal-key}
- Ai__Provider=${AI_PROVIDER:-OpenAI}
- Ai__OpenAI__ApiKey=${OPENAI_API_KEY:-}
- Ai__Ollama__BaseUrl=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
networks:
- myai-network
restart: unless-stopped
api:
depends_on:
- cv-matcher-api
build:
context: ../api
dockerfile: Dockerfile
@@ -16,6 +83,8 @@ services:
- ASPNETCORE_URLS=${ASPNETCORE_URLS:-http://+:8080}
- Cors__AllowedOrigins__0=http://localhost:5000
- Cors__AllowedOrigins__1=http://web:8080
- CvMatcherApi__BaseUrl=http://cv-matcher-api:8080
- CvMatcherApi__InternalApiKey=${INTERNAL_API_KEY:-change-this-internal-key}
volumes:
- ../api/logs:/app/logs
networks:
@@ -40,6 +109,9 @@ services:
- myai-network
restart: unless-stopped
volumes:
myai-mssql-data:
networks:
myai-network:
driver: bridge