Trang này được dịch bằng máy. Đọc bản gốc tiếng Anh.

Recipe

mysql

MySQL for local development via Docker Compose. Synthesized-mode Workload — image, environment, ports, persistent volume, healthcheck are translated from the Workload kind by the compose provider. The database name and credentials are delivered through the MySQL image's environment contract (MYSQL_DATABASE, MYSQL_USER, MYSQL_ROOT_PASSWORD, MYSQL_PASSWORD). Character set and collation are chart- and managed-target knobs; the MySQL container image takes them as server command-line arguments rather than environment variables, so this local-development target leaves them at the image defaults. Secrets injected via the dotenv-secret FeatureRecipe surface as env vars in the rendered service. Bootstrap scripts (init_scripts) and a custom server configuration block (custom_config) are both realized: each script mounts under /docker-entrypoint-initdb.d and runs once when the database first initializes, and the configuration block mounts as a .cnf the server reads through its defaults-extra-file argument.

Nguồn gốc

Chính thứcĐược ký bởi một danh tính ký mà danh mục này công nhận là nhà phát hành chính thức.
Digest nội dung
sha256:640efc9a0c00676914e529610620e24fc9ddc15117c374ac2164e32603b23e41
Đã xuất bản
2026-11-10T10:19:52Z
Danh tính ký
https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

Chữ ký

  • Chính thứcapplication/vnd.dev.sigstore.bundle.v0.3+json

    https://token.actions.githubusercontent.com/https://github.com/aggrega-ai/aggrega-hub/.github/workflows/catalog-publish-sign.yml@refs/heads/main

    sha256:4f257ee855cf6bd460656efaf45fb1d9a14960620bd718fd39d2c1034a63514d

Tham chiếu ở phiên bản này

oci://hub.aggrega.ai/recipe/compose/mysql:1.0.0
Đích
—
Triển khai
core/datastore/mysql:1.0.0

Cung cấp

Các mẫu con trỏ xác định mà công thức này nối cho bên tiêu thụ.

TênMẫu
host{{ .context.instance_id }}
port{{ .infra.port }}
user{{ .values.user }}
database{{ .values.database }}
protocolmysql

Workload

Workload · containers: main

Giá trị cục bộ

TênMẫu
service_name{{ .context.instance_id }}

Ánh xạ values

Chưa khai báo ánh xạ values nào.

Quan hệ

Các cạnh có kiểu đi tới và đi từ các thực thể đã xuất bản khác. Một tham chiếu không có đích đã xuất bản được hiển thị là một cạnh bị đứt thay vì một liên kết.

Sử dụng

  • triển khaitriển khaihợp đồng tương thích

    core/datastore/mysql:1.0.0

    Tất cả đầu ra bắt buộc đều được đáp ứng và mọi đầu ra được cung cấp đều được nêu tên trong hợp đồng.

Được sử dụng bởi

Không có gì trong danh mục phụ thuộc vào thực thể này.

Tài liệu tham khảo khái niệm Recipe →

Danh mục Aggrega — chỉ mục mở gồm các thành phần, tính năng, công thức và các plugin kết xuất chúng.

Được xây dựng bằng hệ thống thiết kế dùng chung của Aggrega.

Quyền riêng tư