- Add a
testcontainers.properties
file to the root of your test resources directory (example file); - Add the repository names of the Docker images you would like to use. The following custom properties are available:
postgresql.container.image
cockroachdb.container.image
mariadb.container.image
mysql.container.image
mssql.container.image
- If using MS-SQL, add a
container-license-acceptance.txt
file to the root of your test resources directory example file.- Add the repository names of the MS-SQL Docker images your are planning to use.
- Modify your JDBC url to contain the
tc:cam[DB_NAME]:[DB_VERSION]
segment. E.g.jdbc:tc:campostgresql:13.2:///process-engine
More details here.