From 9871946e3862135989d00616cd69501cf2abf5b1 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 26 May 2024 23:24:00 +0200 Subject: [PATCH] Updated README.md --- roles/docker-postgres/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/docker-postgres/README.md b/roles/docker-postgres/README.md index d8951d84..2d6b6a63 100644 --- a/roles/docker-postgres/README.md +++ b/roles/docker-postgres/README.md @@ -23,6 +23,12 @@ This Ansible role is designed to deploy a PostgreSQL database using Docker. It i 2. Include this role in your playbook. 3. Run the playbook against the target host. +## Root Access +To access the database via the root account execute the following on the server: +```bash +docker exec -it central-postgres psql -U postgres +``` + ## Notes - The PostgreSQL server is bound to `127.0.0.1:5432` on the host machine, making it accessible only from localhost. - Ensure that the provided passwords are secure and stored securely, preferably using Ansible Vault or another encryption method. \ No newline at end of file