Sign inSign up

dasdasd443/viktor-spring

By dasdasd443

•Updated about 5 years ago

Image
0

114

dasdasd443/viktor-spring repository overview

  1. Pull from the latest mysql image.

  2. 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

  3. 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

  4. 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

  5. Open the application on the published port.

  6. This application implements JWT, the default username and password given is "qweqwe", and "123456" for the password.

  7. To redirect to the home page, click the Rakuten icon or give the pathname "/". 8.Perform simple CRUD.

Tag summary

Content type

Image

Digest

Size

108.5 MB

Last updated

about 5 years ago

docker pull dasdasd443/viktor-spring