-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 980 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 980 Bytes
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
version: '3'
services:
## Posgres database for Inventory
db-inventory:
container_name: db-inventory
image: postgres:15.2
restart: unless-stopped
environment:
POSTGRES_DB: ms_inventory
POSTGRES_USER: jesus
POSTGRES_PASSWORD: Test123
ports:
- 5431:5431
expose:
- 5431
command: -p 5431
## MySQL database for Orders
db-orders:
container_name: db-orders
image: mysql:8.0.33
restart: unless-stopped
environment:
MYSQL_DATABASE: ms_orders
MYSQL_USER: jesus
MYSQL_PASSWORD: Test123
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
expose:
- 3306
### Posgres database for Products
db-products:
container_name: db-products
image: postgres:15.2
restart: unless-stopped
environment:
POSTGRES_DB: ms_products
POSTGRES_USER: jesus
POSTGRES_PASSWORD: Test123
ports:
- 5432:5432
expose:
- 5432
command: -p 5432