-
Notifications
You must be signed in to change notification settings - Fork 347
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (50 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
51 lines (50 loc) · 1.59 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
version: "3.8"
services:
postgres:
image: postgres:15.6
command: postgres -c 'max_connections=500' -c 'shared_preload_libraries=auto_explain' -c 'auto_explain.log_min_duration=1000' -c 'auto_explain.log_analyze=on' -c 'auto_explain.log_verbose=on' -c 'auto_explain.log_timing=on' -c 'auto_explain.log_buffers=on' -c 'auto_explain.log_wal=on' -c 'auto_explain.log_triggers=on' -c 'auto_explain.log_format=text'
restart: always
environment:
- POSTGRES_USER=hatchet
- POSTGRES_PASSWORD=hatchet
- POSTGRES_DB=hatchet
ports:
- "5431:5432"
volumes:
- hatchet_postgres_data:/var/lib/postgresql/data
shm_size: 4g
pgbouncer:
image: edoburu/pgbouncer:v1.25.1-p0
restart: always
environment:
- DATABASE_URL=postgres://hatchet:hatchet@postgres:5432/hatchet
- POOL_MODE=transaction
- MAX_CLIENT_CONN=1000
- DEFAULT_POOL_SIZE=50
- AUTH_TYPE=plain
- LISTEN_PORT=6432
ports:
- "6431:6432"
depends_on:
- postgres
rabbitmq:
image: "rabbitmq:4-management"
hostname: "rabbitmq"
ports:
- "5672:5672" # RabbitMQ
- "15672:15672" # Management UI
environment:
RABBITMQ_DEFAULT_USER: "user"
RABBITMQ_DEFAULT_PASS: "password"
volumes:
- "hatchet_rabbitmq_data:/var/lib/rabbitmq"
- "hatchet_rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf" # Configuration file mount
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 30s
timeout: 10s
retries: 5
volumes:
hatchet_postgres_data:
hatchet_rabbitmq_data:
hatchet_rabbitmq.conf: