have postgres log to console in dev env

also log slow queries and link to documentation for other possible
settings
This commit is contained in:
Elijah DeLee 2022-08-15 11:30:07 -04:00
parent cae2c06190
commit be45919ee4

View File

@ -176,6 +176,8 @@ services:
postgres:
image: postgres:12
container_name: tools_postgres_1
# additional logging settings for postgres can be found https://www.postgresql.org/docs/current/runtime-config-logging.html
command: postgres -c log_destination=stderr -c log_min_messages=info -c log_min_duration_statement={{ pg_log_min_duration_statement|default(1000) }}
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: {{ pg_username }}