From 1c00061396504a6312f7821b8e389069bac05178 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Fri, 5 Nov 2021 22:09:02 +0100 Subject: [PATCH] add support of arm64 architecture for react-express-mysql Signed-off-by: Guillaume Lours --- react-express-mysql/README.md | 10 +++++++++- react-express-mysql/docker-compose.yaml | 5 ++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/react-express-mysql/README.md b/react-express-mysql/README.md index 1055c99..716f5a9 100644 --- a/react-express-mysql/README.md +++ b/react-express-mysql/README.md @@ -27,7 +27,10 @@ services: - 9230:9230 ... db: - image: mysql:8.0.19 + # We use a mariadb image which support both amd64 & arm64 architecture + image: mariadb:10.6.4-focal + # If you really want to use MySQL, uncomment the following line + #image: mysql:8.0.27 ... frontend: build: frontend @@ -39,6 +42,11 @@ The compose file defines an application with three services `frontend`, `backend When deploying the application, docker-compose maps port 3000 of the frontend service container to port 3000 of the host as specified in the file. Make sure port 3000 on the host is not already being in use. +> ℹ️ **_INFO_** +> For compatibility purpose between `AMD64` and `ARM64` architecture, we use a MariaDB as database instead of MySQL. +> You still can use the MySQL image by uncommenting the following line in the Compose file +> `#image: mysql:8.0.27` + ## Deploy with docker-compose ``` diff --git a/react-express-mysql/docker-compose.yaml b/react-express-mysql/docker-compose.yaml index 3f9c6e8..57d47ce 100644 --- a/react-express-mysql/docker-compose.yaml +++ b/react-express-mysql/docker-compose.yaml @@ -28,7 +28,10 @@ services: depends_on: - db db: - image: mysql:8.0.19 + # We use a mariadb image which support both amd64 & arm64 architecture + image: mariadb:10.6.4-focal + # If you really want to use MySQL, uncomment the following line + #image: mysql:8.0.27 command: '--default-authentication-plugin=mysql_native_password' restart: always secrets: