-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.47 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
version: "3.9"
services:
dbstats:
image: postgres:15.2-alpine
environment:
POSTGRES_USER: ${DBSTATS_USER}
POSTGRES_PASSWORD: ${DBSTATS_PASSWORD}
POSTGRES_DB: ${DBSTATS_DATABASE}
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "127.0.0.1:55000:5432"
volumes:
- dbstats-data:/var/lib/postgresql/data
dbusers01:
image: postgres:15.2-alpine
environment:
POSTGRES_USER: ${DBUSERS01_USER}
POSTGRES_PASSWORD: ${DBUSERS01_PASSWORD}
POSTGRES_DB: ${DBUSERS01_DATABASE}
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "127.0.0.1:55101:5432"
volumes:
- dbusers01-data:/var/lib/postgresql/data
dbusers02:
image: postgres:15.2-alpine
environment:
POSTGRES_USER: ${DBUSERS02_USER}
POSTGRES_PASSWORD: ${DBUSERS02_PASSWORD}
POSTGRES_DB: ${DBUSERS02_DATABASE}
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "127.0.0.1:55102:5432"
volumes:
- dbusers02-data:/var/lib/postgresql/data
dbusers03:
image: postgres:15.2-alpine
environment:
POSTGRES_USER: ${DBUSERS03_USER}
POSTGRES_PASSWORD: ${DBUSERS03_PASSWORD}
POSTGRES_DB: ${DBUSERS03_DATABASE}
extra_hosts:
- host.docker.internal:host-gateway
ports:
- "127.0.0.1:55103:5432"
volumes:
- dbusers03-data:/var/lib/postgresql/data
volumes:
dbstats-data:
dbusers01-data:
dbusers02-data:
dbusers03-data: