From 5433057404e9161e2df6dfc4a3879a1c60d5179f Mon Sep 17 00:00:00 2001 From: David Barroso Date: Thu, 19 Oct 2023 08:57:12 +0200 Subject: [PATCH 1/2] fix: add security context to postgres volume --- dockercompose/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockercompose/postgres.go b/dockercompose/postgres.go index cedf16252..0862d499d 100644 --- a/dockercompose/postgres.go +++ b/dockercompose/postgres.go @@ -77,7 +77,7 @@ func postgres( //nolint:funlen { Type: "bind", Source: fmt.Sprintf("%s/db/pgdata", dataFolder), - Target: "/var/lib/postgresql/data/pgdata", + Target: "/var/lib/postgresql/data/pgdata:Z", }, { Type: "bind", From 99e92c72d0212b06716e85ddf81089a2cb67bda7 Mon Sep 17 00:00:00 2001 From: David Barroso Date: Thu, 19 Oct 2023 09:10:32 +0200 Subject: [PATCH 2/2] asd --- dockercompose/postgres_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dockercompose/postgres_test.go b/dockercompose/postgres_test.go index 27a57e99c..d0a364d01 100644 --- a/dockercompose/postgres_test.go +++ b/dockercompose/postgres_test.go @@ -43,7 +43,7 @@ func expectedPostgres(tmpdir string) *Service { { Type: "bind", Source: filepath.Join(tmpdir, "db/pgdata"), - Target: "/var/lib/postgresql/data/pgdata", + Target: "/var/lib/postgresql/data/pgdata:Z", }, { Type: "bind",