Docker container to run a java springboot API
1.3K
= Docker container Angular
This repository contains configurations to create a Docker container with:
This container needs an Springboot project to work. At the running, it will download build the project and run it.
Like that, after few secondes/minutes, your Springboot app works.
== Getting Started
=== Prerequisites
You have to install Docker and Docker Compose (optional) to build and run this container. You also need to have an Springboot project to start this container.
=== Pull container
You can download this container from DockerHub by launching this command :
It will download the latest version.
=== Run container
==== Prerequisites
Firstly, you have to plug an Springboot project. To do that, you need to create a data volume between host and docker container:
You also can create an environment variable to choose if it's a production or prototype environment. In parallel, you have to set it in Springboot application configuration. Please consult official documentation.
==== Running
You can use docker-compose.yml:
It will run your container with parameters specified in the file.
OR
You can use docker run command:
=== Test your project
Open in your browser this URL http://localhost:8080
OR
Consult Docker container logs
OR
Go into the Docker container
== Author
Louis Paret - [email protected]
Content type
Image
Digest
Size
483.5 MB
Last updated
over 8 years ago
docker pull lparet/docker-ubuntu-springboot