-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-docker-compose.yml
68 lines (62 loc) · 1.6 KB
/
test-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
services:
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
command:
- --web.enable-remote-write-receiver
- --enable-feature=native-histograms
- --config.file=/etc/prometheus/prometheus.yml
postgres_exporter:
container_name: pg-exporter
image: prometheuscommunity/postgres-exporter
environment:
DATA_SOURCE_NAME: "postgresql://postgres:postgres@postgres:5432/postgres?sslmode=disable"
ports:
- "9187:9187"
grafana:
image: grafana/grafana:11.0.6
container_name: grafana
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/dashboard
- ./grafana/data:/var/lib/grafana
ports:
- '3001:3000'
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=123456789a
depends_on:
- prometheus
k6:
image: grafana/k6
volumes:
- ./k6/script:/scripts
command: run -o experimental-prometheus-rw /scripts/stress.js
environment:
- K6_PROMETHEUS_RW_SERVER_URL=http://prometheus:9090/api/v1/write
- K6_PROMETHEUS_RW_TREND_AS_NATIVE_HISTOGRAM=true
depends_on:
- prometheus
# mongle-server:
# container_name: mongle-server
# build: .
# ports:
# - '3000:3000'
# - '5000:5000'
# depends_on:
# - postgres
# - redis
# env_file:
# - .env
# deploy:
# resources:
# limits:
# cpus: "1"
# memory: 1.5G
networks:
default:
name: dev_net