-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
99 lines (95 loc) · 1.81 KB
/
docker-compose.yaml
File metadata and controls
99 lines (95 loc) · 1.81 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
services:
mongodb:
build:
context: ./mongodb
dockerfile: Dockerfile
image: azharmd/mongodb:v1
container_name: mongodb
volumes:
- mongodb:/data/db
rabbitmq:
build:
context: ./rabbitmq
dockerfile: Dockerfile
image: azharmd/rabbitmq:v1
container_name: rabbitmq
environment:
RABBITMQ_DEFAULT_USER: roboshop
RABBITMQ_DEFAULT_PASS: roboshop123
volumes:
- rabbitmq:/var/lib/rabbitmq
redis:
build:
context: ./redis
dockerfile: Dockerfile
image: azharmd/redis:v1
container_name: redis
volumes:
- redis:/data
mysql:
build:
context: ./mysql
dockerfile: Dockerfile
image: azharmd/mysql:v1
container_name: mysql
volumes:
- mysql:/var/lib/mysql
catalogue:
build:
context: ./catalogue
dockerfile: Dockerfile
image: azharmd/catalogue:v1
container_name: catalogue
depends_on:
- mongodb
user:
build: ./user
image: azharmd/user:v1
container_name: user
depends_on:
- mongodb
- redis
cart:
build: ./cart
image: azharmd/cart:v1
container_name: cart
depends_on:
- redis
- catalogue
shipping:
build: ./shipping
image: azharmd/shipping:v1
container_name: shipping
depends_on:
- cart
- mysql
payment:
build: ./payment
image: azharmd/payment:v1
container_name: payment
depends_on:
- cart
- user
- rabbitmq
frontend:
build: ./frontend
image: azharmd/frontend:v1
container_name: frontend
ports:
- "80:80"
depends_on:
- catalogue
- user
- cart
- shipping
- payment
networks:
default:
driver: bridge
name: roboshop
external: false
volumes:
mongodb:
redis:
rabbitmq:
mysql: