-
Notifications
You must be signed in to change notification settings - Fork 255
Expand file tree
/
Copy pathPostgreSQLProperties.java
More file actions
32 lines (28 loc) · 1.1 KB
/
PostgreSQLProperties.java
File metadata and controls
32 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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";
static final String DEFAULT_NETWORK_ALIAS = "postgresql.testcontainer.docker";
String user = "postgresql";
String password = "letmein";
String database = "test_db";
String networkAlias = DEFAULT_NETWORK_ALIAS;
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:18-alpine";
}
}