-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 954 Bytes
/
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
version: "3.8"
services:
redis:
image: redis
container_name: redis
ports:
- "6379:6379"
networks:
- app_network
inventory:
build: ./Backend/Inventory
container_name: inventory
ports:
- "8000:8000"
depends_on:
- redis
networks:
- app_network
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
payment:
build: ./Backend/Payment
container_name: payment
ports:
- "8001:8001"
depends_on:
- redis
networks:
- app_network
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
frontend:
build: ./Frontend
container_name: frontend
ports:
- "3000:3000"
depends_on:
- inventory
- payment
networks:
- app_network
environment:
- REACT_APP_INVENTORY_API=http://inventory:8000
- REACT_APP_PAYMENT_API=http://payment:8001
networks:
app_network:
driver: bridge