Sign inSign up

launchcodeeducation/java-techjobs-persistent

By launchcodeeducation

•Updated almost 4 years ago

LaunchCode image for java-techjobs-persisntet assignment

Image
0

220

launchcodeeducation/java-techjobs-persistent repository overview

⁠Setup

This image is meant to be run in conjunction with a MySQL container. This can be accomplished by creating a docker network so that the two containers can communicate.

Run the following commands on the CLI to complete the above:

docker network create java-techjobs-mysql

docker container run --name mysqldb --network java-techjobs-mysql -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=bootdb -d mysql

docker container run --network java-techjobs-mysql --name java-techjobs-persistent -p 8080:8080 -d launchcodeeducation/java-techjobs-persistent

⁠Validation

Access the running persisted application at http://localhost:8080

⁠Notes

The network's name can be changed to any given name and adjusted within the commands.

The name of the MySQL container should not be changed as it is within the application.properties settings of the java app.

You can run the container on a different port if you would like.

Tag summary

Content type

Image

Digest

sha256:5e8aa6a5c…

Size

352.3 MB

Last updated

almost 4 years ago

docker pull launchcodeeducation/java-techjobs-persistent