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: