add support of arm64 architecture for sparkjava-mysql
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
a36bf4fd8b
commit
443f207cf5
@ -22,13 +22,21 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
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
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
The compose file defines an application with two services `backend` and `db`.
|
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.
|
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.
|
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
|
## Deploy with docker-compose
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -6,7 +6,10 @@ services:
|
|||||||
secrets:
|
secrets:
|
||||||
- db-password
|
- db-password
|
||||||
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
|
||||||
restart: always
|
restart: always
|
||||||
secrets:
|
secrets:
|
||||||
- db-password
|
- db-password
|
||||||
|
Loading…
Reference in New Issue
Block a user