Testcontainers tests of Spring Boot application.
This application is a simple post service, that allows to create, get and delete posts.
It uses Spring Boot 3.2.0, Postgres as database and Testcontainers for testing.
You need to provide next variables in .env
file.
HOST
- host with port of Postgres instancePOSTGRES_DB
- name of databasePOSTGRES_USERNAME
- username of userPOSTGRES_PASSWORD
- password of user
You can use example .env.example
file with some predefined environments.
To run this application you need to run docker compose up
.