-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·70 lines (62 loc) · 1.38 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.6'
services:
consul:
image: consul:latest
restart: always
networks:
- discovery
ports:
- 8500:8500
command: agent -server -bind 0.0.0.0 -client 0.0.0.0 -dev -ui -bootstrap-expect 1 -node localhost -node-meta demo -datacenter localhost -data-dir "/consul/data" -log-level DEBUG
# volumes:
# - ./consul-services.json:/consul/config/consul-services.json -config-file "/consul/config/consul-services.json
# - consul_data:/consul/data
jaeger:
image: jaegertracing/all-in-one
environment:
- COLLECTOR_ZIPKIN_HTTP_PORT=9411
networks:
discovery:
aliases:
- jaeger
expose:
- "9411"
- "16686"
ports:
- "16686:16686"
service1:
image: consul-envoy:latest
build: ./sidecar
networks:
- discovery
environment:
- REG_SERVICE_NAME=service1
depends_on:
- consul
- jaeger
service2:
image: consul-envoy:latest
build: ./sidecar
networks:
- discovery
environment:
- REG_SERVICE_NAME=service2
deploy:
replicas: 3
depends_on:
- consul
- jaeger
client:
image: consul-envoy:latest
build: ./sidecar
networks:
- discovery
environment:
- REG_SERVICE_NAME=client
depends_on:
- service1
- service2
networks:
discovery:
# volumes:
# consul_data: