forked from microservices-itmo-21-22/demo-service
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
47 lines (43 loc) · 1.35 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
version: "3.8"
services:
# советую запускать сервис через IDE, поскольку так он более производителен. Однако, его можно запустить и через docker-compose, раскомментировав следующие строки
# bombardier:
# image: ghcr.io/andrsuh/bombardier:${BOMBARDIER_VERSION:-latest}
# ports:
# - "1234:1234"
# restart: unless-stopped
# networks:
# - external_network
# environment:
# - TEST_SERVICE_IP=host.docker.internal
# extra_hosts:
# - "host.docker.internal:host-gateway"
prometheus:
image: quay.io/prometheus/prometheus:v2.32.0
volumes:
- ./prometheus/data:/prometheus
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
ports:
- "9090:9090"
networks:
- external_network
grafana:
image: grafana/grafana
volumes:
- ./grafana/data:/var/lib/grafana
- ./grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SECURITY_ADMIN_PASSWORD=quipy
- GF_USERS_ALLOW_SIGN_UP=false
ports:
- 3000:3000
depends_on:
- prometheus
networks:
- external_network
networks:
external_network:
driver: bridge