add support of arm64 architecture for react-express-mysql
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
772195e07d
commit
1c00061396
@ -27,7 +27,10 @@ services:
|
|||||||
- 9230:9230
|
- 9230:9230
|
||||||
...
|
...
|
||||||
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
|
||||||
...
|
...
|
||||||
frontend:
|
frontend:
|
||||||
build: 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.
|
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.
|
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
|
## Deploy with docker-compose
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -28,7 +28,10 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
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'
|
command: '--default-authentication-plugin=mysql_native_password'
|
||||||
restart: always
|
restart: always
|
||||||
secrets:
|
secrets:
|
||||||
|
Loading…
Reference in New Issue
Block a user