-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
68 lines (63 loc) · 1.44 KB
/
compose.yaml
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
services:
movierating.postgres:
image: postgres:latest
container_name: postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=movierating
- POSTGRES_PASSWORD=MyPass@word
ports:
- 5432:5432
networks:
- movie
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 10s
timeout: 5s
retries: 5
movierating.api:
image: movierating.api
container_name: api
build:
context: .
dockerfile: src/MovieRating.Api/Dockerfile
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=http://movierating.dashboard:18889
ports:
- 8081:8081
- 8080:8080
networks:
- movie
depends_on:
movierating.postgres:
condition: service_healthy
movierating.dashboard:
image: mcr.microsoft.com/dotnet/aspire-dashboard:8.0
container_name: dashboard
ports:
- 18888:18888
networks:
- movie
movierating.prometheus:
image: prom/prometheus
container_name: prometheus
ports:
- 9090:9090
volumes:
- ./prometheus:/etc/prometheus
networks:
- movie
movierating.grafana:
image: grafana/grafana
container_name: grafana
ports:
- 3000:3000
volumes:
- ./grafana/config:/etc/grafana
- ./grafana/dashboards:/var/lib/grafana/dashboards
networks:
- movie
depends_on:
- movierating.prometheus
networks:
movie: