-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
85 lines (85 loc) · 1.67 KB
/
docker-compose.yaml
File metadata and controls
85 lines (85 loc) · 1.67 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
services:
catalogue:
build:
context: ./catalogue
dockerfile: Dockerfile
image: jayani23/catalogue:v1
container_name: catalogue
depends_on:
- mongodb
mongodb:
build: ./mongodb
image: jayani23/mongodb:v1
container_name: mongodb
volumes:
- mongodb:/data/db
redis:
image: redis:7.0
container_name: redis
volumes:
- redis:/data
mysql:
build: ./mysql
image: jayani23/mysql:v1
container_name: mysql
volumes:
- mysql:/var/lib/mysql
rabbitmq:
image: rabbitmq:3
container_name: rabbitmq
volumes: # -v rabbitmq:/var/lib/rabbitmq
- rabbitmq:/var/lib/rabbitmq
environment:
RABBITMQ_DEFAULT_USER: roboshop
RABBITMQ_DEFAULT_PASS: roboshop123
user:
build: ./user
image: jayani23/user:v1
container_name: user
depends_on:
- mongodb
- redis
cart:
build: ./cart
image: jayani23/cart:v1
container_name: cart
depends_on:
- redis
- catalogue
shipping:
build: ./shipping
image: jayani23/shipping:v1
container_name: shipping
depends_on:
- mysql
- cart
payment:
build: ./payment
image: jayani23/payment:v1
container_name: payment
depends_on:
- rabbitmq
- cart
- user
frontend:
build: ./frontend
image: jayani23/frontend:v1
container_name: frontend
ports:
- "80:80"
depends_on:
- catalogue
- user
- cart
- shipping
- payment
networks:
default:
driver: bridge
name: roboshop
external: false # true if you have created manually using docker network command
volumes:
mongodb: # docker volume create mongodb
redis:
mysql:
rabbitmq: