REST API for managing machines.
Swagger UI Documentation: https://machine-manager-production.up.railway.app/swagger-ui/index.html
Steps to build docker image:
-
Clone this repo:
git clone https://github.com/tzdv/machine-manager.git
-
Navigate to source folder:
cd machine-manager
-
Set environment variables for the database connection:
DB_USERNAME=dbusername DB_PASSWORD=dbpassword DB_URL=mysql://hostname:port/dbname DB_NAME=dbname PORT=8080
-
Build the image :
docker build -t machine-manager .
-
Run the containers:
docker compose up
-
Once everything is successfully started up, the application should listen on: localhost:8080