-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathdocker-compose-postgres.yml
More file actions
executable file
·47 lines (47 loc) · 1.17 KB
/
docker-compose-postgres.yml
File metadata and controls
executable file
·47 lines (47 loc) · 1.17 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
version: '3.5'
services:
#-------------------#
# Producer Database #
#-------------------#
product-service-database:
container_name: product-service-database.local
image: debezium/postgres:15
ports:
- 51432:5432
networks:
- ecommerce-network
environment:
- POSTGRES_DB=application_db
- POSTGRES_USER=masteruser
- POSTGRES_PASSWORD=masterpass
#------------------------#
# Shopping Cart Database #
#------------------------#
shopping-cart-service-database:
container_name: shopping-cart-service-database.local
image: postgres:15
ports:
- 52432:5432
networks:
- ecommerce-network
environment:
- POSTGRES_DB=application_db
- POSTGRES_USER=masteruser
- POSTGRES_PASSWORD=masterpass
#----------------#
# Order Database #
#----------------#
order-service-database:
container_name: order-service-database.local
image: postgres:15
ports:
- 53432:5432
networks:
- ecommerce-network
environment:
- POSTGRES_DB=application_db
- POSTGRES_USER=masteruser
- POSTGRES_PASSWORD=masterpass
networks:
ecommerce-network:
name: ecommerce-app