Pull from the latest mysql image.
Run a container with the mysql image, docker run -d --name mysql_container_name -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=database_name -e MYSQL_USER=username -e MYSQL_PASSWORD=password mysql:latest
In the application.properties, change the spring datasource url to jdbc:mysql://mysql_container_name:3306/database_name give the username value with the value of MYSQL_USER give the password value with the value of MYSQL_PASSWORD server port will be the port to be used when running the image in a container
Run the image with the connection of the mysql container. docker run -d -p server.port:server.port --name spring-container-name --link mysql_container_name:mysql spring-image
Open the application on the published port.
This application implements JWT, the default username and password given is "qweqwe", and "123456" for the password.
To redirect to the home page, click the Rakuten icon or give the pathname "/". 8.Perform simple CRUD.
Content type
Image
Digest
Size
108.5 MB
Last updated
about 5 years ago
docker pull dasdasd443/viktor-spring