-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (92 loc) · 2.19 KB
/
docker-compose.yml
File metadata and controls
99 lines (92 loc) · 2.19 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
version: "3.9"
services:
web:
container_name: new_api_web
build: .
command: >
sh -c "./wait-for-db.sh db &&
python manage.py migrate &&
gunicorn new_api.wsgi:application --bind 0.0.0.0:8000"
ports:
- "8000:8000"
environment:
- DJANGO_SETTINGS_MODULE=new_api.settings
- DB_NAME=new_api_db
- DB_USER=new_api_user
- DB_PASSWORD=new_api_password
- DB_HOST=db
- DB_PORT=5432
- JAEGER_HOST=jaeger
- JAEGER_PORT=6831
- OTEL_EXPORTER_OTLP_ENDPOINT=http://jaeger:4318
- OTEL_SERVICE_NAME=new_api
depends_on:
- db
- jaeger
volumes:
- .:/app
restart: always
db:
image: postgres:15
container_name: new_api_db
restart: always
environment:
- POSTGRES_DB=new_api_db
- POSTGRES_USER=new_api_user
- POSTGRES_PASSWORD=new_api_password
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
jaeger:
image: jaegertracing/all-in-one:1.54
container_name: new_api_jaeger
restart: always
ports:
- "16686:16686"
- "4317:4317"
- "4318:4318"
prometheus:
image: prom/prometheus:latest
container_name: new_api_prometheus
restart: always
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
depends_on:
- web
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
- --web.enable-lifecycle
grafana:
image: grafana/grafana:latest
container_name: new_api_grafana
restart: always
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus
- influxdb
volumes:
- grafana_data:/var/lib/grafana
influxdb:
image: influxdb:1.8
container_name: new_api_influxdb
restart: always
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=jmeter
- INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_HTTP_AUTH_ENABLED=false
volumes:
- influxdb_data:/var/lib/influxdb
volumes:
postgres_data:
grafana_data:
influxdb_data: