make build
make run
make clean
Go to your browser and check http://localhost:8000/ping
docker-compose down
- docker >= 17.12.0+
- docker-compose
- Clone or download this repository
- Go inside of directory,
cd compose-postgres - Run this command
docker-compose up -d
This Compose file contains the following environment variables:
POSTGRES_USERthe default value is postgresPOSTGRES_PASSWORDthe default value is postgresPGADMIN_PORTthe default value is 5050PGADMIN_DEFAULT_EMAILthe default value is [email protected]PGADMIN_DEFAULT_PASSWORDthe default value is admin
localhost:5432- Username: postgres (as a default)
- Password: postgres (as a default)
- URL:
http://localhost:5050 - Username: [email protected] (as a default)
- Password: admin (as a default)
- Host name/address
postgres - Port
5432 - Username as
POSTGRES_USER, by default:postgres - Password as
POSTGRES_PASSWORD, by defaultpostgres
- comando maven /c skip testes ./mvnw package -Dmaven.test.skip=true**
- comando maven para gerar changeLog Baseline liquibase ./mvnw liquibase:generateChangeLog**
- comando maven para subir em banco os changeLogs liquibase ./mvnw liquibase:update**
- comando maven para marcar os objetos que já existem no banco liquibase ./mvnw liquibase:changelogSync**
- comando maven para limpar o checksum ./mvnw liquibase:clearCheckSums**