Add new infra architecture 11

This commit is contained in:
Urtzi Alfaro
2026-01-20 22:05:10 +01:00
parent 0217ad83be
commit 2512de4173
42 changed files with 1056 additions and 874 deletions

View File

@@ -10,8 +10,8 @@ metadata:
# - BASE_REGISTRY: Registry URL for base images
# - PYTHON_IMAGE: Python image name and tag
#
# Dev (default): BASE_REGISTRY=localhost:5000, PYTHON_IMAGE=python_3.11-slim
# Prod: BASE_REGISTRY=docker.io, PYTHON_IMAGE=python:3.11-slim
# Dev (default): BASE_REGISTRY=localhost:5000, PYTHON_IMAGE=python_3_11_slim
# Prod: BASE_REGISTRY=gitea-http.gitea.svc.cluster.local:3000/bakery-admin, PYTHON_IMAGE=python_3_11_slim
#
# Usage:
# skaffold dev # Uses dev settings (local registry)
@@ -35,7 +35,7 @@ build:
dockerfile: gateway/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
# Frontend (no Python base image needed)
- image: bakery/dashboard
@@ -50,7 +50,7 @@ build:
dockerfile: services/auth/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/tenant-service
context: .
@@ -58,7 +58,7 @@ build:
dockerfile: services/tenant/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/training-service
context: .
@@ -66,7 +66,7 @@ build:
dockerfile: services/training/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/forecasting-service
context: .
@@ -74,7 +74,7 @@ build:
dockerfile: services/forecasting/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/sales-service
context: .
@@ -82,7 +82,7 @@ build:
dockerfile: services/sales/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/external-service
context: .
@@ -90,7 +90,7 @@ build:
dockerfile: services/external/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/notification-service
context: .
@@ -98,7 +98,7 @@ build:
dockerfile: services/notification/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/inventory-service
context: .
@@ -106,7 +106,7 @@ build:
dockerfile: services/inventory/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/recipes-service
context: .
@@ -114,7 +114,7 @@ build:
dockerfile: services/recipes/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/suppliers-service
context: .
@@ -122,7 +122,7 @@ build:
dockerfile: services/suppliers/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/pos-service
context: .
@@ -130,7 +130,7 @@ build:
dockerfile: services/pos/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/orders-service
context: .
@@ -138,7 +138,7 @@ build:
dockerfile: services/orders/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/production-service
context: .
@@ -146,7 +146,7 @@ build:
dockerfile: services/production/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/alert-processor
context: .
@@ -154,7 +154,7 @@ build:
dockerfile: services/alert_processor/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
- image: bakery/demo-session-service
context: .
@@ -162,7 +162,7 @@ build:
dockerfile: services/demo_session/Dockerfile
buildArgs:
BASE_REGISTRY: localhost:5000
PYTHON_IMAGE: python_3.11-slim
PYTHON_IMAGE: python_3_11_slim
deploy:
kustomize:
@@ -320,8 +320,8 @@ profiles:
docker:
dockerfile: gateway/Dockerfile
buildArgs:
BASE_REGISTRY: docker.io
PYTHON_IMAGE: "python:3.11-slim"
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000/bakery-admin
PYTHON_IMAGE: "python_3_11_slim"
# Frontend
- image: bakery/dashboard
@@ -329,22 +329,22 @@ profiles:
docker:
dockerfile: Dockerfile.kubernetes
# Microservices - Production base images (docker.io/python:3.11-slim)
# Microservices - Production base images (gitea-http.gitea.svc.cluster.local:3000/bakery-admin/python_3.11-slim)
- image: bakery/auth-service
context: .
docker:
dockerfile: services/auth/Dockerfile
buildArgs:
BASE_REGISTRY: docker.io
PYTHON_IMAGE: "python:3.11-slim"
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000/bakery-admin
PYTHON_IMAGE: "python_3_11_slim"
- image: bakery/tenant-service
context: .
docker:
dockerfile: services/tenant/Dockerfile
buildArgs:
BASE_REGISTRY: docker.io
PYTHON_IMAGE: "python:3.11-slim"
BASE_REGISTRY: gitea-http.gitea.svc.cluster.local:3000/bakery-admin
PYTHON_IMAGE: "python_3_11_slim"
- image: bakery/training-service
context: .