mirror of
https://github.com/geoffsee/predict-otron-9001.git
synced 2025-09-08 22:46:44 +00:00
Add Docker Compose and Kubernetes metadata to Cargo.toml files
This commit is contained in:
@@ -25,11 +25,15 @@ rand = "0.8.5"
|
||||
async-openai = "0.28.3"
|
||||
once_cell = "1.19.0"
|
||||
|
||||
|
||||
# generates docker compose configuration
|
||||
[package.metadata.compose]
|
||||
image = "ghcr.io/geoffsee/embeddings-service:latest"
|
||||
port = 8080
|
||||
|
||||
|
||||
# generates kubernetes manifests
|
||||
[package.metadata.kube]
|
||||
image = "ghcr.io/geoffsee/embeddings-service:latest"
|
||||
replicas = 1
|
||||
port = 8080
|
||||
resources.cpu = "500m"
|
||||
resources.memory = "256Mi"
|
||||
#ingress.host = "my-service.example.com"
|
||||
#env = { RUST_LOG = "info", DATABASE_URL = "postgres://..." }
|
||||
port = 8080
|
Reference in New Issue
Block a user