From 03d224d4067d2d43a5955d34c0593d7cdf143bf9 Mon Sep 17 00:00:00 2001 From: Matt Harrington Date: Thu, 25 Jun 2026 11:20:38 -0700 Subject: [PATCH] Pin docker-compose MCP build to linux/amd64 asyncmy fails with SIGILL on native arm64 Docker builds (Apple Silicon). Always build amd64 images and document the limitation. Co-authored-by: Cursor --- README.md | 6 ++++++ docker-compose.yml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9f0b2c..4705bef 100644 --- a/README.md +++ b/README.md @@ -273,6 +273,12 @@ For production use, you should create a dedicated database user with minimal pri uv run server.py --transport http --host 127.0.0.1 --port 9001 --path /mcp ``` +### Docker Compose + +```bash +docker compose up --build +``` + --- ## Usage Examples diff --git a/docker-compose.yml b/docker-compose.yml index 6d5d8f3..94ba2e4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,13 @@ services: timeout: 3s retries: 10 mariadb-mcp: - build: . + # asyncmy wheels crash with SIGILL on native arm64 Docker (Apple Silicon). + # Build and run as linux/amd64 only. + platform: linux/amd64 + build: + context: . + platforms: + - linux/amd64 container_name: mariadb-mcp env_file: .env ports: