-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (77 loc) · 1.51 KB
/
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
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
version: '3'
services:
mongo_db:
image: mongo:latest
container_name: mongo_db
ports:
- '27017:27017'
restart: always
mongo_seed:
image: mongo:latest
links:
- mongo_db
volumes:
- ./mongo-seed:/mongo-seed
command:
/mongo-seed/import.sh
customer:
build:
dockerfile: Dockerfile
context: ./customer
container_name: customer
ports:
- '8005:8005'
restart: always
depends_on:
- mongo_db
volumes:
- .:/app
- /app/customer/node_modules
products:
build:
dockerfile: Dockerfile
context: ./products
container_name: products
ports:
- '8006:8006'
restart: always
depends_on:
- mongo_db
volumes:
- .:/app
- /app/products/node_modules
shopping:
build:
dockerfile: Dockerfile
context: ./shopping
container_name: shopping
ports:
- '8007:8007'
restart: always
depends_on:
- mongo_db
volumes:
- .:/app
- /app/shopping/node_modules
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
nginx-proxy:
build:
dockerfile: Dockerfile
context: ./proxy
container_name: nginx-proxy
depends_on:
- products
- customer
- shopping
ports:
- "81:81"
volumes:
mongo_db: {}