You could try @BeforeEach and @BeforeAll decorators to clear DB data or make some cleaning after each test.
Testcontainers life cycle with @BeforeAll, @AfterAll, @BeforeEach
related - How to fully recreate a Testcontainers container before each test?