-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
100 lines (94 loc) · 2.67 KB
/
docker-compose.yaml
File metadata and controls
100 lines (94 loc) · 2.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
services:
nosql-db:
image: mvertes/alpine-mongo
container_name: nosql-db
volumes:
- ./db/:/data/db
rabbitmq:
image: rabbitmq:alpine
container_name: rabbitmq
products:
build:
dockerfile: Dockerfile
context: ./products
container_name: products
ports:
- "8002:8002"
restart: always
depends_on:
- "nosql-db"
- "rabbitmq"
volumes:
- .:/app
- /app/products/node_modules
environment:
- APP_SECRET=MySecretKey
- MONGODB_URI=mongodb+srv://hiranya:hiranya@cluster0.deewp.mongodb.net/products?retryWrites=true&w=majority&appName=Cluster0&ssl=true
- MSG_QUEUE_URL=amqps://hmymaonx:eQw67COvm6yBLbc0-ls4vHwjHfiYKEdZ@lionfish.rmq.cloudamqp.com/hmymaonx
- EXCHANGE_NAME=ONLINE_STORE
- PORT=8002
shopping:
build:
dockerfile: Dockerfile
context: ./shopping
container_name: shopping
ports:
- "8003:8003"
restart: always
depends_on:
- "nosql-db"
- "rabbitmq"
volumes:
- .:/app
- /app/shopping/node_modules
environment:
- APP_SECRET=MySecretKey
- MONGODB_URI=mongodb+srv://hiranya:hiranya@cluster0.deewp.mongodb.net/shopping?retryWrites=true&w=majority&appName=Cluster0&ssl=true
- MSG_QUEUE_URL=amqps://hmymaonx:eQw67COvm6yBLbc0-ls4vHwjHfiYKEdZ@lionfish.rmq.cloudamqp.com/hmymaonx
- EXCHANGE_NAME=ONLINE_STORE
- PORT=8003
customer:
build:
dockerfile: Dockerfile
context: ./customer
container_name: customer
ports:
- "8001:8001"
restart: always
depends_on:
- "nosql-db"
- "rabbitmq"
volumes:
- .:/app/
- /app/customer/node_modules
environment:
- APP_SECRET=MySecretKey
- MONGODB_URI=mongodb+srv://hiranya:hiranya@cluster0.deewp.mongodb.net/customer?retryWrites=true&w=majority&appName=Cluster0&ssl=true
- MSG_QUEUE_URL=amqps://hmymaonx:eQw67COvm6yBLbc0-ls4vHwjHfiYKEdZ@lionfish.rmq.cloudamqp.com/hmymaonx
- EXCHANGE_NAME=ONLINE_STORE
- PORT=8001
- GOOGLE_CLIENT_ID=382807774945-2irksaaiaqr613v7mlnsoe3sien9vds3.apps.googleusercontent.com
- GOOGLE_CLIENT_SECRET=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
- GOOGLE_REDIRECT_URI=http://localhost/auth/google/callback
frontend:
build:
dockerfile: Dockerfile
context: ./shopping_app_frontend
container_name: frontend
ports:
- "3000:3000"
restart: always
volumes:
- .:/app/
- /app/shopping_app_frontend/node_modules
nginx-proxy:
build:
dockerfile: Dockerfile
context: ./proxy
depends_on:
- products
- shopping
- customer
- frontend
ports:
- 80:80