-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsql-compose.yml
44 lines (44 loc) · 966 Bytes
/
sql-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
36
37
38
39
40
41
42
43
44
version: "3"
services:
postgres:
container_name: postgres
image: postgres:alpine
restart: unless-stopped
ports:
- "5432:5432"
volumes:
- "shorty_sql:/var/lib/postgresql/data/pgdata"
environment:
TZ: "UTC"
PGTZ: "UTC"
POSTGRES_USER: "root"
POSTGRES_PASSWORD: "root"
POSTGRES_DB: "links"
PGDATA: "/var/lib/postgresql/data/pgdata"
command:
- "postgres"
- "-c"
- "max_connections=50"
- "-c"
- "work_mem=16MB"
- "-c"
- "maintenance_work_mem=256MB"
- "-c"
- "random_page_cost=1.1"
- "-c"
- "temp_file_limit=256MB"
- "-c"
- "log_min_duration_statement=200ms"
- "-c"
- "idle_in_transaction_session_timeout=10s"
- "-c"
- "lock_timeout=1s"
- "-c"
- "statement_timeout=60s"
deploy:
resources:
limits:
cpus: '1'
memory: "1G"
volumes:
shorty_sql: