-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
36 lines (34 loc) · 999 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "3.4"
services:
database:
# https://hub.docker.com/_/postgres
image: postgres:15
restart: always
env_file:
- .env.local
# environment:
# - POSTGRES_DB=pgdb
# - POSTGRES_PASSWORD=pgpassword
# - POSTGRES_USER=postgres
volumes:
- ./cache/postgres/data:/var/lib/postgresql/data
- ./cache/postgres/initdb.d/extensions.sql:/docker-entrypoint-initdb.d/extensions.sql
ports:
- "5432:5432"
# https://stackoverflow.com/questions/57015003/log-all-queries-in-the-official-postgres-docker-image
command: [
"postgres",
# https://www.postgresql.org/docs/current/runtime-config-logging.html
"-c",
#"log_statement=all",
"log_statement=mod",
# "-c",
# "log_min_error_statement=WARNING",
# "-c",
# "log_min_messages=WARNING",
# "-c",
# "log_error_verbosity=TERSE",
"-c",
#"log_min_duration_statement=2000"
"log_min_duration_statement=0"
]