-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.override.yml
64 lines (60 loc) · 2.12 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
61
62
63
64
services:
consul:
ports:
- "8500:8500"
valueservice1.openapi:
# Swagger UI: http://localhost:9100/index.html
# http://localhost:9100/api/values
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceConfig__ApiUrl=valueservice1.openapi
- ServiceConfig__ConsulUrl=http://consul:8500
- ServiceConfig__HealthCheckEndPoint=healthcheck
- ServiceConfig__Id=ValueService.OpenApi-9100
- ServiceConfig__Name=ValueService
- ServiceConfig__Port=8080
ports:
- 9100:8080
depends_on:
- consul
valueservice2.openapi:
# Swagger UI: http://localhost:9200/index.html
# http://localhost:9200/api/values
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceConfig__ApiUrl=valueservice2.openapi
- ServiceConfig__ConsulUrl=http://consul:8500
- ServiceConfig__HealthCheckEndPoint=healthcheck
- ServiceConfig__Id=ValueService.OpenApi-9200
- ServiceConfig__Name=ValueService
- ServiceConfig__Port=8080
ports:
- 9200:8080
depends_on:
- consul
valueservice3.openapi:
# Swagger UI: http://localhost:9300/index.html
# http://localhost:9300/api/values
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ServiceConfig__ApiUrl=valueservice3.openapi
- ServiceConfig__ConsulUrl=http://consul:8500
- ServiceConfig__HealthCheckEndPoint=healthcheck
- ServiceConfig__Id=ValueService.OpenApi-9300
- ServiceConfig__Name=ValueService
- ServiceConfig__Port=8080
ports:
- 9300:8080
depends_on:
- consul
services.gateway:
# Call first available service: http://localhost:9500/api/values
environment:
- ASPNETCORE_ENVIRONMENT=Development
ports:
- 9500:8080
depends_on:
- consul
- valueservice1.openapi
- valueservice2.openapi
- valueservice3.openapi