This repository was archived by the owner on Dec 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
68 lines (65 loc) · 1.38 KB
/
compose.yaml
File metadata and controls
68 lines (65 loc) · 1.38 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
66
67
68
services:
db-user-container:
container_name: db-user
image: postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
ports:
- 5433:5433
volumes:
- db-user:/var/lib/postgresql/data
networks:
restaurant:
ipv4_address: 148.32.2.3
db-orders-container:
container_name: db-orders
image: postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
ports:
- 5434:5434
volumes:
- db-orders:/var/lib/postgresql/data
networks:
restaurant:
ipv4_address: 148.32.2.4
db-restaurant-container:
container_name: db-restaurant
image: postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=password
ports:
- 5435:5435
volumes:
- db-restaurant:/var/lib/postgresql/data
networks:
restaurant:
ipv4_address: 148.32.2.5
pgadmin4:
container_name: pgadmin4
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=root@root.com
- PGADMIN_DEFAULT_PASSWORD=passwd
ports:
- 80:80
volumes:
- pgadmin4-volume:/var/lib/pgadmin
networks:
restaurant:
ipv4_address: 148.32.2.2
volumes:
app:
db-user:
db-restaurant:
db-orders:
pgadmin4-volume:
networks:
restaurant:
ipam:
driver: default
config:
- subnet: "148.32.2.0/24"