Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.48 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.48 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
version: "3.9"
services:
consul:
image: hashicorp/consul:1.17
command: agent -dev -ui -client=0.0.0.0 -dns-port=8600
ports:
- "8500:8500"
- "8600:8600/udp"
networks:
micro:
aliases: [consul]
product-catalog:
image: planet/shop-product:1.0.7
environment:
- NODE_ENV=dev
- PORT=3001
- CONSUL_HOST=consul
ports:
- "3001:3001"
dns:
- 127.0.0.1
- 127.0.0.11
dns_search: ["service.consul"] # for service name resolution (product-catalog.service.consul)
depends_on:
- consul
networks:
- micro
basket-service: # placeholder for later
image: planet/shop-basket:1.0.7
environment:
- NODE_ENV=dev
- PORT=3002
- CONSUL_HOST=consul
ports:
- "3002:3002"
dns:
- 127.0.0.1
- 127.0.0.11
dns_search: ["service.consul"] # for service name resolution (product-catalog.service.consul)
depends_on:
- consul
- rabbitmq
- product-catalog
networks:
- micro
inventory-service:
image: planet/shop-inventory:1.0.7
environment:
- NODE_ENV=dev
- PORT=3003
- CONSUL_HOST=consul
ports:
- "3003:3003"
dns:
- 127.0.0.1
- 127.0.0.11
dns_search: ["service.consul"]
depends_on:
- consul
- rabbitmq
networks:
- micro
rabbitmq:
image: rabbitmq:3.12-alpine
ports: ["5672:5672"]
networks:
- micro
networks:
micro:
driver: bridge