docker run -d --name tt-customers-db -e POSTGRES_USER=dbuser -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=customer -p 5435:5432 postgres:latestRun
mvn clean packagefrom repo root directory.
To run application local jar, run:
java -jar api/target/*.jarMicroservice finds database through ip
To test the service you should go to
http://localhost:8083/v1/customers
To see a list of all customers.
http://localhost:8083/v1/customers/1
To see the first one, etc.
docker build . -t tt-customers:X[Optional] Define your own X
docker run -p 8081:8081 tt-customers:X