Musichub

This repository contains a Docker Compose setup for running a Spring Boot application with PostgreSQL as the database and Adminer as the database management tool. Follow the steps below to get the entire stack up and running.

Prerequisites

Make sure you have Docker and Docker Compose installed on your machine.

Clone the Repository

git clone <https://github.com/danielele77/musichub>
cd <repository-directory>

Run the docker containers

To run Docker containers type the following command into terminal:

docker-compose up --build

This command will download the necessary Docker images, build the Spring Boot application, and start the containers.

The Spring Boot application will be accessible at http://localhost:8082, and Adminer will be accessible at http://localhost:8081.

Accessing Adminer

Use Adminer to manage your PostgreSQL database easily.

Stopping the Containers

To stop the running containers, press Ctrl + C in the terminal where the containers are running, or run the following command:

docker-compose down