mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 07:43:35 -05:00
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:
@@ -176,6 +176,8 @@ services:
|
|||||||
postgres:
|
postgres:
|
||||||
image: postgres:12
|
image: postgres:12
|
||||||
container_name: tools_postgres_1
|
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:
|
environment:
|
||||||
POSTGRES_HOST_AUTH_METHOD: trust
|
POSTGRES_HOST_AUTH_METHOD: trust
|
||||||
POSTGRES_USER: {{ pg_username }}
|
POSTGRES_USER: {{ pg_username }}
|
||||||
|
|||||||
Reference in New Issue
Block a user