forked from matjazbravc/Consul.ServiceDiscovery.Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
60 lines (55 loc) · 1.82 KB
/
docker-compose.override.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
version: '3.9'
services:
consul:
ports:
- "8500:8500"
valueservice1.openapi:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceConfig__Id=ValueService.OpenApi-9100
- ServiceConfig__Name=ValueService
- ServiceConfig__DiscoveryAddress=http://consul:8500
- ServiceConfig__Address=valueservice1.openapi
- ServiceConfig__Port=80
- ServiceConfig__HealthCheckEndPoint=healthcheck
ports:
- 9100:80
depends_on:
- consul
valueservice2.openapi:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceConfig__Id=ValueService.OpenApi-9200
- ServiceConfig__Name=ValueService
- ServiceConfig__DiscoveryAddress=http://consul:8500
- ServiceConfig__Address=valueservice2.openapi
- ServiceConfig__Port=80
- ServiceConfig__HealthCheckEndPoint=healthcheck
ports:
- 9200:80
depends_on:
- consul
valueservice3.openapi:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceConfig__Id=ValueService.OpenApi-9300
- ServiceConfig__Name=ValueService
- ServiceConfig__DiscoveryAddress=http://consul:8500
- ServiceConfig__Address=valueservice3.openapi
- ServiceConfig__Port=80
- ServiceConfig__HealthCheckEndPoint=healthcheck
ports:
- 9300:80
depends_on:
- consul
services.gateway:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
ports:
- 9500:80
depends_on:
- consul
- valueservice1.openapi
- valueservice2.openapi
- valueservice3.openapi