-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
116 lines (106 loc) · 2.74 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
services:
minimalapitemplate.api:
image: ${DOCKER_REGISTRY-}minimalapitemplate.api
container_name: minimalapitemplate.api
environment:
- MassTransit__PublishEnabled=true
- OTEL_EXPORTER_OTLP_ENDPOINT=
- SEQ_SERVER_URL=http://host.docker.internal:8903
ports:
- "8901:443"
networks:
- shared-network
depends_on:
- minimalapitemplate.db
- minimalapitemplate.cache
- minimalapitemplate.seq
- minimalapitemplate.rabbit
build:
context: .
dockerfile: src/MinimalApiTemplate.Api/Dockerfile
minimalapitemplate.worker:
image: ${DOCKER_REGISTRY-}minimalapitemplate.worker
container_name: minimalapitemplate.worker
environment:
- MassTransit__ConsumerEnabled=true
- OTEL_EXPORTER_OTLP_ENDPOINT=
- SEQ_SERVER_URL=http://host.docker.internal:8903
ports:
- "8910:80"
networks:
- shared-network
depends_on:
- minimalapitemplate.rabbit
- minimalapitemplate.seq
build:
context: .
dockerfile: src/MinimalApiTemplate.Worker/Dockerfile
minimalapitemplate.db:
image: mcr.microsoft.com/mssql/server:2022-latest
container_name: minimalapitemplate.db
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=61tagstdgdtfsgkF!@
ports:
- "8902:1433"
networks:
- shared-network
minimalapitemplate.seq:
image: datalust/seq
container_name: minimalapitemplate.seq
environment:
- ACCEPT_EULA=Y
ports:
- "8903:80"
volumes:
- seq_data:/data
networks:
- shared-network
minimalapitemplate.cache:
image: redis
container_name: minimalapitemplate.cache
ports:
- "8904:6379"
networks:
- shared-network
minimalapitemplate.rabbit:
image: rabbitmq:3-management
container_name: minimalapitemplate.rabbit
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
ports:
- "8905:15672"
- "8906:5672"
networks:
- shared-network
minimalapitemplate.grafana:
image: grafana/grafana
container_name: minimalapitemplate.grafana
ports:
- "3000:3000"
volumes:
- grafana_data:/etc/grafana
- grafana_dashboards:/var/lib/grafana/dashboards
- grafana_certs:/certs
networks:
- shared-network
minimalapitemplate.prometheus:
image: prom/prometheus
container_name: minimalapitemplate.prometheus
ports:
- "9090:9090"
volumes:
- prometheus_data:/prometheus
- ./scripts/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
networks:
- shared-network
volumes:
seq_data:
grafana_data:
grafana_dashboards:
grafana_certs:
prometheus_data:
networks:
shared-network:
driver: bridge