com.playtika.testcontainer.postgresql.PostgreSQLProperties Maven / Gradle / Ivy
package com.playtika.testcontainer.postgresql;
import com.playtika.testcontainer.common.properties.CommonContainerProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@EqualsAndHashCode(callSuper = true)
@ConfigurationProperties("embedded.postgresql")
public class PostgreSQLProperties extends CommonContainerProperties {
static final String BEAN_NAME_EMBEDDED_POSTGRESQL = "embeddedPostgreSql";
String user = "postgresql";
String password = "letmein";
String database = "test_db";
String startupLogCheckRegex;
/**
* The SQL file path to execute after the container starts to initialize the database.
*/
String initScriptPath;
// https://hub.docker.com/_/postgres
@Override
public String getDefaultDockerImage() {
// Please don`t remove this comment.
// renovate: datasource=docker
return "postgres:16-alpine";
}
}