- Check-in voordat we aan bugfix beginnen te werken.

- Introductie van static-files serving met standaard nginx (niet ons docker nginx image), en een rsync service om static files te synchroniseren. Nog niet volledig afgewerkt!
This commit is contained in:
Josako
2025-08-21 05:48:03 +02:00
parent 9c63ecb17f
commit 4c00d33bc3
10 changed files with 467 additions and 194 deletions

View File

@@ -5,20 +5,18 @@
# Service group definitions
declare -A SERVICE_GROUPS
# Infrastructure services (Redis, MinIO)
SERVICE_GROUPS[infrastructure]="redis minio"
# Infrastructure services (Redis, MinIO, Static Files)
SERVICE_GROUPS[infrastructure]="redis minio static-files-access static-files"
# Application services (all EveAI apps)
SERVICE_GROUPS[apps]="eveai-app eveai-api eveai-chat-client eveai-workers eveai-chat-workers eveai-beat eveai-entitlements"
# Static files and ingress
SERVICE_GROUPS[static]="static-files eveai-ingress"
# Monitoring services
SERVICE_GROUPS[monitoring]="prometheus grafana flower"
# All services combined
SERVICE_GROUPS[all]="redis minio eveai-app eveai-api eveai-chat-client eveai-workers eveai-chat-workers eveai-beat eveai-entitlements static-files eveai-ingress prometheus grafana flower"
SERVICE_GROUPS[all]="redis minio static-files-access static-files eveai-app eveai-api eveai-chat-client eveai-workers eveai-chat-workers eveai-beat eveai-entitlements prometheus grafana flower"
# Service to YAML file mapping
declare -A SERVICE_YAML_FILES
@@ -26,6 +24,7 @@ declare -A SERVICE_YAML_FILES
# Infrastructure services
SERVICE_YAML_FILES[redis]="redis-minio-services.yaml"
SERVICE_YAML_FILES[minio]="redis-minio-services.yaml"
SERVICE_YAML_FILES[static-files-access]="static-files-access.yaml"
# Application services
SERVICE_YAML_FILES[eveai-app]="eveai-services.yaml"
@@ -36,9 +35,8 @@ SERVICE_YAML_FILES[eveai-chat-workers]="eveai-services.yaml"
SERVICE_YAML_FILES[eveai-beat]="eveai-services.yaml"
SERVICE_YAML_FILES[eveai-entitlements]="eveai-services.yaml"
# Static and ingress services
# Static files service
SERVICE_YAML_FILES[static-files]="static-files-service.yaml"
SERVICE_YAML_FILES[eveai-ingress]="eveai-ingress.yaml"
# Monitoring services
SERVICE_YAML_FILES[prometheus]="monitoring-services.yaml"
@@ -51,6 +49,8 @@ declare -A SERVICE_DEPLOY_ORDER
# Infrastructure first (order 1)
SERVICE_DEPLOY_ORDER[redis]=1
SERVICE_DEPLOY_ORDER[minio]=1
SERVICE_DEPLOY_ORDER[static-files-access]=1
SERVICE_DEPLOY_ORDER[static-files]=1
# Core apps next (order 2)
SERVICE_DEPLOY_ORDER[eveai-app]=2
@@ -63,9 +63,6 @@ SERVICE_DEPLOY_ORDER[eveai-workers]=3
SERVICE_DEPLOY_ORDER[eveai-chat-workers]=3
SERVICE_DEPLOY_ORDER[eveai-beat]=3
# Static files and ingress (order 4)
SERVICE_DEPLOY_ORDER[static-files]=4
SERVICE_DEPLOY_ORDER[eveai-ingress]=4
# Monitoring last (order 5)
SERVICE_DEPLOY_ORDER[prometheus]=5