-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (64 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
version: "3.8"
services:
auth:
build:
context: ./auth
image: auth_services
ports:
- "3000:3000"
env_file:
- ./auth/.env
networks:
- ecommerce
rabbitmq:
image: rabbitmq:3.8-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
networks:
- ecommerce
order:
build:
context: ./order
image: order_services
ports:
- "3002:3002"
depends_on:
- rabbitmq
environment:
- RABBITMQ_URL=amqp://rabbitmq:5672
env_file:
- ./order/.env
networks:
- ecommerce
product:
build:
context: ./product
image: product_services
ports:
- "3001:3001"
depends_on:
- rabbitmq
environment:
- RABBITMQ_URL=amqp://rabbitmq:5672
env_file:
- ./product/.env
networks:
- ecommerce
api-gateway:
build:
context: ./api-gateway
image: api-gateway_services
ports:
- "3003:3003"
environment:
- RABBITMQ_URL=amqp://rabbitmq:5672
networks:
- ecommerce
networks:
ecommerce:
driver: bridge