-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (84 loc) · 2.99 KB
/
docker-compose.yml
File metadata and controls
90 lines (84 loc) · 2.99 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
# Sample Service 1 - DEV.
sample-service-1-dev:
build:
context: .
dockerfile: code/WorldDomination.SimpleObservability.SampleServiceWebApi/Dockerfile
ports:
- "5001:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080 # Override the random, internal port.
- HealthMetadata__ServiceName=Sample Service 1
- HealthMetadata__Version=1.2.3
- HealthMetadata__Environment=DEV
- HealthMetadata__Description=Sample service 1 in development
networks:
- observability-net
# Sample Service 1 - UAT.
sample-service-1-uat:
build:
context: .
dockerfile: code/WorldDomination.SimpleObservability.SampleServiceWebApi/Dockerfile
ports:
- "5002:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080 # Override the random, internal port.
- HealthMetadata__ServiceName=Sample Service 1
- HealthMetadata__Version=1.2.4-beta
- HealthMetadata__Environment=UAT
- HealthMetadata__Description=Sample service 1 in UAT
networks:
- observability-net
# Sample Service 1 - PROD.
sample-service-1-prod:
build:
context: .
dockerfile: code/WorldDomination.SimpleObservability.SampleServiceWebApi/Dockerfile
ports:
- "5003:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080 # Override the random, internal port.
- HealthMetadata__ServiceName=Sample Service 1
- HealthMetadata__Version=1.2.5
- HealthMetadata__Environment=PROD
- HealthMetadata__Description=Sample service 1 in production
networks:
- observability-net
# Sample Service 2 - DEV.
sample-service-2-dev:
build:
context: .
dockerfile: code/WorldDomination.SimpleObservability.SampleServiceWebApi/Dockerfile
ports:
- "5004:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080 # Override the random, internal port.
- HealthMetadata__ServiceName=Sample Service 2
- HealthMetadata__Version=feature/new-auth
- HealthMetadata__Environment=DEV
- HealthMetadata__Description=Sample service 2 in development
networks:
- observability-net
# Sample Service 2 - UAT.
sample-service-2-uat:
build:
context: .
dockerfile: code/WorldDomination.SimpleObservability.SampleServiceWebApi/Dockerfile
ports:
- "5005:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080 # Override the random, internal port.
- HealthMetadata__ServiceName=Sample Service 2
- HealthMetadata__Version=feature/new-auth
- HealthMetadata__Environment=UAT
- HealthMetadata__Description=User service in development
networks:
- observability-net
networks:
observability-net:
driver: bridge