feat(llm-api): add CI/CD, Dockerfile, compose, Traefik routing

- infra/docker/llm-api.Dockerfile — multi-stage Rust build with cargo-chef
- infra/compose/llm-api.yml — service with model volume mount & healthcheck
- infra/traefik/dynamic/apps.yaml — router for ai.asepharyana.my.id
- CI: build-push workflow detects llm-api changes, builds image
- CD: deploy workflow includes llm-api.yml in compose stack
This commit is contained in:
asepharyana
2026-07-25 12:06:39 +07:00
parent 781e091508
commit b4a55cfa7b
5 changed files with 99 additions and 4 deletions
+12
View File
@@ -42,6 +42,14 @@ http:
rule: Host(`auth.asepharyana.my.id`) || Host(`auth.asepharyana.web.id`)
service: rust-auth-service
tls: {}
llm-api:
entryPoints:
- websecure
middlewares:
- common-chain@file
rule: Host(`ai.asepharyana.my.id`) || Host(`ai.asepharyana.web.id`)
service: llm-api-service
tls: {}
scraper:
entryPoints:
- websecure
@@ -76,6 +84,10 @@ http:
loadBalancer:
servers:
- url: http://rust-auth:3000
llm-api-service:
loadBalancer:
servers:
- url: http://llm-api:8080
scraper-service:
loadBalancer:
servers: