diff --git a/utils/docker/docker-compose.yml b/utils/docker/docker-compose.yml index ad6183b..654b513 100644 --- a/utils/docker/docker-compose.yml +++ b/utils/docker/docker-compose.yml @@ -32,18 +32,13 @@ services: image: "postgres:latest" ports: - "5432:5432" - command: - - "postgres" - - "-c" - - "max_connections=400" - - "-c" - - "shared_buffers=20MB" - - "-c" - - "ssl=on" - - "-c" - - "ssl_cert_file=/var/lib/postgresql/certs/server.crt" - - "-c" - - "ssl_key_file=/var/lib/postgresql/certs/server.key" + user: postgres + command: > + bash -c " + chown 999:999 /var/lib/postgresql/certs/server.key && + chmod 600 /var/lib/postgresql/certs/server.key && + postgres -c max_connections=400 -c shared_buffers=20MB -c ssl=on -c ssl_cert_file=/var/lib/postgresql/certs/server.crt -c ssl_key_file=/var/lib/postgresql/certs/server.key + " env_file: - postgresql.env restart: always