-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
133 lines (125 loc) · 3.56 KB
/
docker-compose.yml
File metadata and controls
133 lines (125 loc) · 3.56 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
services:
api:
build:
context: .
dockerfile: CentralizedLoggingApi/Dockerfile
container_name: centralized_logging_api
environment:
- ASPNETCORE_ENVIRONMENT=Production
ports:
- "5000:8080" # Map host:container for HTTP
- "5001:8081" # Map host:container for HTTPS (if your app supports it)
depends_on:
db:
condition: service_healthy
jaeger:
condition: service_started
dragonfly:
condition: service_started
volumes:
- ./CentralizedLoggingApi/logs:/app/logs
userapi:
build:
context: .
dockerfile: UserManagementApi/Dockerfile
container_name: user_management_api
environment:
- ASPNETCORE_ENVIRONMENT=Production
ports:
- "6000:8080" # Host 6000 -> container 8080 (HTTP)
# - "6001:8081" # Optional HTTPS mapping if your app listens on 8081
depends_on:
db:
condition: service_healthy
jaeger:
condition: service_started
dragonfly:
condition: service_started
volumes:
- ./UserManagementApi/logs:/app/logs
web:
build:
context: .
dockerfile: ApiIntegrationMvc/Dockerfile
container_name: api_integration_web
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080
# Point the web app to APIs by service name (DNS provided by Compose)
- Services__CentralizedLogging__BaseUrl=http://api:8080
- Services__UserManagement__BaseUrl=http://userapi:8080
ports:
- "7000:8080" # browse http://localhost:7000
depends_on:
api:
condition: service_started
userapi:
condition: service_started
jaeger:
condition: service_started
dragonfly:
condition: service_started
messagebus-invalidator:
build:
context: .
dockerfile: MessageBus.Invalidator/Dockerfile
container_name: messagebus_invalidator
environment:
- ASPNETCORE_ENVIRONMENT=Production
depends_on:
rabbitmq:
condition: service_started
dragonfly:
condition: service_started
restart: unless-stopped
db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: centralized_logging_db
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Bisp@123
ports:
- "1433:1433"
healthcheck:
test: ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost,1433 -U sa -P 'Bisp@123' -C -Q \"SELECT 1\""]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
volumes:
- sql_data:/var/opt/mssql
# Jaeger (all-in-one: UI + collector + agent + storage)
jaeger:
image: jaegertracing/all-in-one:1.57
container_name: jaeger
ports:
- "16686:16686" # Jaeger UI
- "4317:4317" # OTLP gRPC (traces)
- "4318:4318" # OTLP HTTP (traces)
environment:
- LOG_LEVEL=info
dragonfly:
image: docker.dragonflydb.io/dragonflydb/dragonfly:v1.24.0
container_name: dragonfly
command: ["--requirepass=Bisp@123"]
ports:
- "6379:6379"
volumes:
- dflydata:/data
restart: unless-stopped
rabbitmq:
image: rabbitmq:3.13-management
container_name: dev-rabbitmq
ports:
- "5672:5672" # AMQP
- "15672:15672" # Management UI
environment:
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: rabbit
volumes:
- rabbitmq_data:/var/lib/rabbitmq
restart: unless-stopped
volumes:
sql_data:
dflydata:
rabbitmq_data: