diff --git a/sparkjava-mysql/README.md b/sparkjava-mysql/README.md index e3220e8..ba26546 100644 --- a/sparkjava-mysql/README.md +++ b/sparkjava-mysql/README.md @@ -22,13 +22,21 @@ services: ports: - 8080:8080 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 ... ``` The compose file defines an application with two services `backend` and `db`. When deploying the application, docker-compose maps port 8080 of the backend service container to port 80 of the host as specified in the file. Make sure port 8080 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/sparkjava-mysql/docker-compose.yaml b/sparkjava-mysql/docker-compose.yaml index ebb2161..28c8d3d 100644 --- a/sparkjava-mysql/docker-compose.yaml +++ b/sparkjava-mysql/docker-compose.yaml @@ -6,7 +6,10 @@ services: secrets: - db-password 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 restart: always secrets: - db-password