-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (55 loc) · 1 KB
/
docker-compose.yml
File metadata and controls
61 lines (55 loc) · 1 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
version: "2"
services:
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
networks:
- app-network
inventory:
container_name: inventory
build:
context: inventory
image: inventory
depends_on:
- redis
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
ports:
- "80:80"
networks:
- app-network
payment:
container_name: payment
build:
context: payment
image: payment
depends_on:
- redis
environment:
REDIS_HOST: "redis"
REDIS_PORT: "6379"
INVENTORY_SERVICE_URL: "http://inventory:80"
ports:
- "81:81"
networks:
- app-network
inventory_frontend:
container_name: inventory_frontend
build:
context: inventory_frontend
image: inventory_frontend
depends_on:
- inventory
- payment
ports:
- "3000:3000"
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mongodbdata: