-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
74 lines (72 loc) · 1.8 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3"
services:
pg:
image: postgres:16.2-alpine3.19
container_name: 'health-master-pg'
ports:
- 5432:5432
volumes:
- daming-health-master-volume:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
POSTGRES_DB: postgres
TZ: 'GMT+8'
PGTZ: 'GMT+8'
networks:
- daming-health-master-network
pgbouncer:
image: edoburu/pgbouncer:1.21.0-p1
container_name: pgbouncer
environment:
- DATABASE_URL=postgres://postgres:123456@pg:5432/postgres
- POOL_MODE=session
- MAX_DB_CONNECTIONS=100
- DEFAULT_POOL_SIZE=40
- AUTH_TYPE=scram-sha-256
# volumes:
# - ./pgbouncer/pgbouncer.ini:/etc/pgbouncer/pgbouncer.ini
# - ./pgbouncer/userlist.txt:/etc/pgbouncer/userlist.txt
networks:
- daming-health-master-network
ports:
- 6543:5432
depends_on:
- pg
redis:
image: redis:7.2.5-alpine3.19
container_name: 'health-master-redis'
ports:
- 6379:6379
restart: unless-stopped
volumes:
- daming-health-master-redis-volume:/data/redis
networks:
- daming-health-master-network
kuma:
image: louislam/uptime-kuma:1.23.13-alpine
restart: unless-stopped
ports:
- '3001:3001'
volumes:
- daming-health-master-kuma-volume:/app/data
container_name: uptime-kuma
networks:
- daming-health-master-network
pgweb:
image: sosedoff/pgweb:0.14.2
container_name: pgweb
ports:
- 8081:8081
networks:
- daming-health-master-network
volumes:
daming-health-master-volume:
external: true
daming-health-master-redis-volume:
external: true
daming-health-master-kuma-volume:
external: true
networks:
daming-health-master-network:
external: false