postgres_exporter/docker-compose.md
dependabot[bot] a64f02ff1b
Bump golang.org/x/sync from 0.7.0 to 0.8.0 (#252)
* Bump golang.org/x/sync from 0.7.0 to 0.8.0

Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sync/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: deprecated docker compose syntax

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Demidoff <alexander.demidoff@percona.com>
2024-08-13 16:32:37 +03:00

718 B

In order to start PostgreSQL with SSL support, we need to change the file permissions for the ssl cert and key.

Please run these commands if you want to run docker compose locally.

sudo chown 999:999 testdata/ssl/server/* sudo chmod 0600 testdata/ssl/server/*

Start the container:

`docker compose` up

To be able to connect from pgsql you need to own the certs

sudo chown ${USER}:${USER} testdata/ssl/client* sudo chmod 0600 testdata/ssl/client/*

Connect using psql

psql "host=127.0.0.1 port=5433 user=root password=root dbname=postgres sslmode=verify-ca sslcert=${PWD}/testdata/ssl/client/server.crt sslkey=${PWD}/testdata/ssl/client/server.key sslrootcert=${PWD}/testdata/ssl/client/CA.crt"