mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-19 15:28:06 +02:00
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
2 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
||||
```
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue