diff --git a/db/db_test.go b/db/db_test.go index 14f910277..4d1309495 100644 --- a/db/db_test.go +++ b/db/db_test.go @@ -27,7 +27,7 @@ func NewPostgresDatabaseClient(ctx context.Context, t *testing.T, req NewPostgre testcontainers.SkipIfProviderIsNotHealthy(t) postgresC, err := testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{ ContainerRequest: testcontainers.ContainerRequest{ - Image: "postgres:13.1", + Image: "postgres:14-alpine", ExposedPorts: []string{"5432/tcp"}, WaitingFor: wait.ForLog("database system is ready to accept connections"), Env: map[string]string{ diff --git a/docker-compose.yaml b/docker-compose.yaml index d06772881..8828f3013 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -71,7 +71,7 @@ services: condition: service_healthy db: - image: postgres:10-alpine + image: postgres:14-alpine restart: unless-stopped environment: POSTGRES_DB: tinkerbell