Staging build

This commit is contained in:
2026-05-20 21:11:25 +03:00
parent aa79b422e4
commit 6e54b20a02
5 changed files with 25 additions and 604 deletions
+24 -53
View File
@@ -1,18 +1,12 @@
services:
rag-api:
build:
context: ..
dockerfile: Apis/rag-api/Dockerfile
image: registry.easysoft.ro/apps/myai-rag-api:staging
container_name: myai-rag-api
ports:
- "8081:8080"
env_file:
- .env
environment:
# ASP.NET
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Staging}
- ASPNETCORE_URLS=${ASPNETCORE_URLS:-http://+:8080}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.local}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.staging}
- LogEnvironmentOnStartup=${LogEnvironmentOnStartup:-true}
# Database: matches rag-api appsettings Database section
@@ -60,8 +54,7 @@ services:
- Serilog__WriteTo__2__Args__port=${Serilog__WriteTo__2__Args__port:-587}
- Serilog__WriteTo__2__Args__enableSsl=${Serilog__WriteTo__2__Args__enableSsl:-true}
volumes:
- ../Apis/api/logs:/app/logs
- ../Apis/api/Files:/app/Files
- /opt/myai/logs/rag-api:/app/logs
networks:
- myai-network
restart: unless-stopped
@@ -69,21 +62,15 @@ services:
- "com.centurylinklabs.watchtower.enable=true"
cv-matcher-api:
build:
context: ..
dockerfile: Apis/cv-matcher-api/Dockerfile
image: registry.easysoft.ro/apps/myai-cv-matcher-api:staging
container_name: myai-cv-matcher-api
depends_on:
- rag-api
ports:
- "8082:8080"
env_file:
- .env
environment:
# ASP.NET
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Staging}
- ASPNETCORE_URLS=${ASPNETCORE_URLS:-http://+:8080}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.local}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.staging}
- LogEnvironmentOnStartup=${LogEnvironmentOnStartup:-true}
# Database: matches cv-matcher-api appsettings Database section
@@ -129,7 +116,7 @@ services:
- Serilog__WriteTo__2__Args__port=${Serilog__WriteTo__2__Args__port:-587}
- Serilog__WriteTo__2__Args__enableSsl=${Serilog__WriteTo__2__Args__enableSsl:-true}
volumes:
- ../Apis/api/logs:/app/logs
- /opt/myai/logs/cv-matcher-api:/app/logs
networks:
- myai-network
restart: unless-stopped
@@ -137,23 +124,15 @@ services:
- "com.centurylinklabs.watchtower.enable=true"
api:
build:
context: ..
dockerfile: Apis/api/Dockerfile
image: registry.easysoft.ro/apps/myai-api:staging
container_name: myai-api
depends_on:
- cv-matcher-api
ports:
- "8080:8080"
env_file:
- .env
# Keep this only if Apis/api/.env contains api-specific overrides not present in docker-compose/.env.
# - ../Apis/api/.env
environment:
# ASP.NET
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Staging}
- ASPNETCORE_URLS=${ASPNETCORE_URLS:-http://+:8080}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.local}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.staging}
- LogEnvironmentOnStartup=${LogEnvironmentOnStartup:-true}
# Google: matches api appsettings Google section
@@ -219,8 +198,8 @@ services:
- Serilog__WriteTo__2__Args__port=${Serilog__WriteTo__2__Args__port:-587}
- Serilog__WriteTo__2__Args__enableSsl=${Serilog__WriteTo__2__Args__enableSsl:-true}
volumes:
- ../Apis/api/logs:/app/logs
- ../Apis/api/Files:/app/Files
- /opt/myai/logs/api:/app/logs
- /opt/myai/files:/app/Files
networks:
- myai-network
restart: unless-stopped
@@ -228,22 +207,18 @@ services:
- "com.centurylinklabs.watchtower.enable=true"
cv-cleanup-job:
build:
context: ..
dockerfile: Jobs/cv-cleanup-job/Dockerfile
image: registry.easysoft.ro/apps/myai-cv-cleanup-job:staging
container_name: myai-cv-cleanup-job
depends_on:
- api
env_file:
- .env
environment:
# Worker + diagnostics (matches Jobs/cv-cleanup-job appsettings)
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.local}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Staging}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.staging}
- LogEnvironmentOnStartup=${LogEnvironmentOnStartup:-true}
# FileStorage: matches cv-cleanup-job appsettings FileStorage section
- FileStorage__Path=${FileStorage__Path:-Files}
- FileStorage__Path=Files
# Jobs: matches cv-cleanup-job appsettings Jobs:Tasks
- Jobs__Tasks__0__Enabled=${Jobs__CvStorageCleanupEnabled:-true}
@@ -266,8 +241,8 @@ services:
- Serilog__WriteTo__2__Args__port=${Serilog__WriteTo__2__Args__port:-587}
- Serilog__WriteTo__2__Args__enableSsl=${Serilog__WriteTo__2__Args__enableSsl:-true}
volumes:
- ../Jobs/cv-cleanup-job/logs:/app/logs
- ../Apis/api/Files:/app/Files
- /opt/myai/logs/cv-cleanup-job:/app/logs
- /opt/myai/files:/app/Files
networks:
- myai-network
restart: unless-stopped
@@ -275,20 +250,16 @@ services:
- "com.centurylinklabs.watchtower.enable=true"
web:
build:
context: ..
dockerfile: web/Dockerfile
image: registry.easysoft.ro/apps/myai-web:staging
container_name: myai-web
depends_on:
- api
ports:
- "5000:8080"
env_file:
- .env
- "5140:8080"
environment:
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Development}
- ASPNETCORE_ENVIRONMENT=${ASPNETCORE_ENVIRONMENT:-Staging}
- ASPNETCORE_URLS=${ASPNETCORE_URLS:-http://+:8080}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.local}
- APP_ENVIRONMENT_NAME=${APP_ENVIRONMENT_NAME:-myai.staging}
# Site: matches web appsettings Site section (Normal, UnderConstruction, Unavailable)
- Site__Mode=${Site__Mode:-Normal}
@@ -298,4 +269,4 @@ services:
networks:
myai-network:
driver: bridge
driver: bridge