-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (41 loc) · 1.15 KB
/
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
36
37
38
39
40
41
42
43
44
45
version: '3.9'
services:
bot:
image: "bot"
stop_signal: SIGINT
build:
context: .
working_dir: "/app/bot"
volumes:
- .:/app/bot
command: python3 -m setup
restart: always
env_file:
- ".env"
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
pg_database:
image: postgres
ports:
- "5439:5432"
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
command: "postgres -c max_connections=150
-c shared_buffers=512MB -c effective_cache_size=1536MB
-c maintenance_work_mem=128MB -c checkpoint_completion_target=0.9 -c wal_buffers=16MB
-c default_statistics_target=100 -c random_page_cost=1.1 -c effective_io_concurrency=200
-c work_mem=3495kB -c min_wal_size=1GB -c max_wal_size=4GB -c max_worker_processes=2
-c max_parallel_workers_per_gather=1 -c max_parallel_workers=2 -c max_parallel_maintenance_workers=1"
env_file:
- '.env'
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
volumes:
postgres_data: