-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
173 lines (161 loc) · 4.18 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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
version: '3.8'
services:
# Sql Server
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: sqlserver
environment:
- SA_PASSWORD=Admin*123
- ACCEPT_EULA=Y
ports:
- "5002:1433"
volumes:
- sqlserverdata:/var/opt/mssql
# PostgreSQL Database
db:
image: postgres:latest
container_name: postgres_db
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: "todolistdb"
POSTGRES_USER: "admin"
POSTGRES_PASSWORD: "Admin*123"
# pgAdmin Web Interface
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_container
restart: always
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: "[email protected]"
PGADMIN_DEFAULT_PASSWORD: "Admin*123"
depends_on:
- db
links:
- db:postgres
networks:
- monitoring
# .API TODO LIST
web:
build:
context: .
dockerfile: src/ToDoList.API/Dockerfile
container_name: todolist_app
restart: always
ports:
- "5005:8080"
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ConnectionStrings__Postgres: "Host=host.docker.internal;Database=todolistdb;Username=admin;Password=Admin*123"
ElasticConfiguration__Uri: "http://host.docker.internal:9200"
depends_on:
- db
links:
- db
networks:
- monitoring
# .API grpc-web-api-user:
grpc-web-api-user:
build:
context: .
dockerfile: src/Grpc.User.API/Dockerfile
container_name: grpc_user_app
restart: always
ports:
- "5003:8080"
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ConnectionStrings__Sql: "Host=host.docker.internal;Database=todolistdb;Username=sa;Password=Admin*123"
ElasticConfiguration__Uri: "http://host.docker.internal:9200"
depends_on:
- db
links:
- db
networks:
- monitoring
# .API authenticate:
authenticate-api:
build:
context: .
dockerfile: src/Authenticate.API/Dockerfile
container_name: authenticate-api
restart: always
ports:
- "5004:8080"
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ConnectionStrings__SqlServer: "Server=.;Database=userdb;User Id=TATI-NOTE\tatid;Password=;Persist Security Info=False;Integrated Security=true;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False;Connection Timeout=30;"
ElasticConfiguration__Uri: "http://host.docker.internal:9200"
depends_on:
- db
links:
- db
networks:
- monitoring
#.API Gateway:
gateway-aggregator-api:
build:
context: .
dockerfile: src/ApiGateways/ToDoList.Aggregator/Dockerfile
container_name: gateway-aggregator-api
restart: always
ports:
- "5006:8080"
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ConnectionStrings__SqlServer: "Server=.;Database=userdb;User Id=TATI-NOTE\tatid;Password=;Persist Security Info=False;Integrated Security=true;MultipleActiveResultSets=False;Encrypt=False;TrustServerCertificate=False;Connection Timeout=30;"
ElasticConfiguration__Uri: "http://host.docker.internal:9200"
depends_on:
- db
links:
- db
networks:
- monitoring
# Prometheus
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: always
ports:
- "9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- monitoring
depends_on:
- web
# Grafana
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
ports:
- "3000:3000"
volumes:
- grafana-storage:/var/lib/grafana
networks:
- monitoring
depends_on:
- prometheus
# #Elasticsearch
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.1
container_name: elasticsearch
restart: always
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms512m -Xmx512m
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
monitoring:
volumes:
sqlserverdata:
grafana-storage:
esdata: