-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (123 loc) · 3.03 KB
/
docker-compose.yml
File metadata and controls
135 lines (123 loc) · 3.03 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
134
135
version: '3.8'
services:
gateway:
build:
context: ./RecipesGateway
ports:
- "5002:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
depends_on:
- grpc-service
- redis
grpc-service:
build:
context: ./RecipesGrpc
ports:
- "5085:5085"
depends_on:
- postgres
environment:
- DOTNET_ENVIRONMENT=Development
- ConnectionStrings__PostgresConnection=Host=postgres;Port=5432;Database=recipesdb;Username=postgres;Password=postgres
entrypoint: >
sh -c "until pg_isready -h postgres -U postgres; do echo waiting for postgres; sleep 2; done;
dotnet RecipesGrpc.dll"
postgres:
image: postgres:15
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: recipesdb
ports:
- "6432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7
container_name: redis
ports:
- "6379:6379"
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
grafana:
image: grafana/grafana
container_name: grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
opensearch:
image: opensearchproject/opensearch:2.10.0
container_name: opensearch
environment:
- discovery.type=single-node
- plugins.security.disabled=true
- DISABLE_INSTALL_DEMO_CONFIG=true
ports:
- "9200:9200"
- "9300:9300"
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.10.0
container_name: opensearch-dashboards
ports:
- "5601:5601"
environment:
- OPENSEARCH_HOSTS=http://opensearch:9200
- DISABLE_SECURITY_DASHBOARDS_PLUGIN=true
depends_on:
- opensearch
logstash:
image: opensearchproject/logstash-oss-with-opensearch-output-plugin:7.16.2
container_name: logstash
volumes:
- ./logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
ports:
- "5044:5044"
depends_on:
- opensearch
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- "5051:80"
depends_on:
- postgres
volumes:
- pgadmin_data:/var/lib/pgadmin
entrypoint:
- sh
- -c
- |
mkdir -p /var/lib/pgadmin &&
chmod -R 777 /var/lib/pgadmin &&
/entrypoint.sh
volumes:
postgres_data:
pgadmin_data: