-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
48 lines (47 loc) · 1.09 KB
/
docker-compose.dev.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
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3.9"
# main part
services:
db:
container_name: caloricity_db
image: postgres:latest
command:
- "postgres"
- "-c"
- "max_connections=250"
- "-c"
- "shared_buffers=1GB"
- "-c"
- "effective_cache_size=4GB"
- "-c"
- "work_mem=16MB"
- "-c"
- "maintenance_work_mem=512MB"
- "-c"
- "random_page_cost=1.1"
- "-c"
- "temp_file_limit=10GB"
- "-c"
- "log_min_duration_statement=200ms"
- "-c"
- "idle_in_transaction_session_timeout=600s"
- "-c"
- "lock_timeout=1s"
- "-c"
- "statement_timeout=60s"
- "-c"
- "shared_preload_libraries=pg_stat_statements"
- "-c"
- "pg_stat_statements.max=10000"
- "-c"
- "pg_stat_statements.track=all"
volumes:
- .:/var/lib/postgresql/data
environment:
TZ: Europe/Moscow
POSTGRES_DB: caloricity
POSTGRES_USER: caloricity
POSTGRES_PASSWORD: caloricity
PGDATA: "/var/lib/postgresql/data/pgdata"
ports:
- "5432:5432"
restart: unless-stopped