-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
65 lines (65 loc) · 1.37 KB
/
docker-compose.example.yml
File metadata and controls
65 lines (65 loc) · 1.37 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3.3'
services:
telegram:
build:
context: .
dockerfile: FTM.Telegram/Dockerfile
ports:
- "127.0.0.1:5255:80"
hostname: "telegram.ftm"
networks:
- postgres
env_file: .env.example
depends_on:
- redis
- postgres
- postgres_exporter
redis:
image: redis
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
hostname: "redis.ftm"
networks:
- postgres
postgres:
image: postgres:15
command:
- "postgres"
- "-c"
- "max_connections=50"
- "-c"
- "shared_buffers=1GB"
- "-c"
- "effective_cache_size=1GB"
- "-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=10s"
- "-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"
env_file: .env.example
volumes:
- .:/var/lib/postgresql/data
restart: unless-stopped
hostname: "postgres.ftm"
networks:
- postgres
networks:
postgres:
driver: bridge