This commit is contained in:
2026-05-13 09:38:52 +03:00
parent 24962fba03
commit d4805b06e6
15 changed files with 514 additions and 7 deletions
+13 -6
View File
@@ -39,10 +39,6 @@ Database__User=sa
Database__Password=
Database__TrustServerCertificate=true
# Internal API protection
InternalApi__ApiKey=
InternalApi__RequireApiKey=false
# RAG settings
Rag__MaxFileSizeMb=8
Rag__ChunkSize=900
@@ -57,9 +53,15 @@ Matcher__TopK=10
Matcher__DeepScoreTopN=5
Matcher__MaxJobTextChars=60000
# RagApi used by cv-matcher
RagApi__BaseUrl=http://rag-api:8082
# RagApi credentials
RagApi__BaseUrl=http://rag-api:8080
RagApi__InternalApiKey=
RagApi__RequireApiKey=true
# CvMatcher credentials
CvMatcherApi__BaseUrl=http://cv-matcher-api:8080
CvMatcherApi__InternalApiKey=
CvMatcherApi__RequireApiKey=true
# Captcha
Captcha__Provider=Recaptcha
@@ -67,6 +69,11 @@ Captcha__SecretKey=
Captcha__PublicKey=
Captcha__MinimumScore=0.5
# Job worker (scheduled tasks: CV file storage cleanup, etc.)
Jobs__CvStorageCleanupEnabled=true
Jobs__CvStorageCleanupInterval=01:00:00
Jobs__CvStorageMaxTotalSizeMegabytes=40
# File Storage
FileStorage__Path=/opt/myai/files
FileStorage__DefaultFileName=
@@ -206,6 +206,28 @@ services:
labels:
- "com.centurylinklabs.watchtower.enable=true"
job:
image: registry.easysoft.ro/apps/myai-job:production
container_name: myai-job
depends_on:
- api
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Production}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.production}
- FileStorage__Path=Files
- Jobs__Tasks__0__Enabled=${Jobs__CvStorageCleanupEnabled:-true}
- Jobs__Tasks__0__Interval=${Jobs__CvStorageCleanupInterval:-01:00:00}
- Jobs__Tasks__0__Parameters__MaxTotalSizeMegabytes=${Jobs__CvStorageMaxTotalSizeMegabytes:-40}
- Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information}
- Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning}
volumes:
- /opt/myai/files:/app/Files
networks:
- myai-network
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
web:
image: registry.easysoft.ro/apps/myai-web:production
container_name: myai-web
+22
View File
@@ -206,6 +206,28 @@ services:
labels:
- "com.centurylinklabs.watchtower.enable=true"
job:
image: registry.easysoft.ro/apps/myai-job:staging
container_name: myai-job
depends_on:
- api
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Staging}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.staging}
- FileStorage__Path=Files
- Jobs__Tasks__0__Enabled=${Jobs__CvStorageCleanupEnabled:-true}
- Jobs__Tasks__0__Interval=${Jobs__CvStorageCleanupInterval:-01:00:00}
- Jobs__Tasks__0__Parameters__MaxTotalSizeMegabytes=${Jobs__CvStorageMaxTotalSizeMegabytes:-40}
- Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information}
- Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning}
volumes:
- /opt/myai/files:/app/Files
networks:
- myai-network
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
web:
image: registry.easysoft.ro/apps/myai-web:staging
container_name: myai-web
+26
View File
@@ -226,6 +226,32 @@ services:
labels:
- "com.centurylinklabs.watchtower.enable=true"
job:
build:
context: ..
dockerfile: cv-cleanup-job/Dockerfile
container_name: myai-job
depends_on:
- api
env_file:
- .env
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.local}
- FileStorage__Path=${FileStorage__Path:-Files}
- Jobs__Tasks__0__Enabled=${Jobs__CvStorageCleanupEnabled:-true}
- Jobs__Tasks__0__Interval=${Jobs__CvStorageCleanupInterval:-01:00:00}
- Jobs__Tasks__0__Parameters__MaxTotalSizeMegabytes=${Jobs__CvStorageMaxTotalSizeMegabytes:-40}
- Logging__LogLevel__Default=${Logging__LogLevel__Default:-Information}
- Logging__LogLevel__Microsoft=${Logging__LogLevel__Microsoft:-Warning}
volumes:
- ${FileStorage__Path:-../Files}:/app/Files
networks:
- myai-network
restart: unless-stopped
labels:
- "com.centurylinklabs.watchtower.enable=true"
web:
build:
context: ..