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: