-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.26 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
version: '3'
services:
typesense:
image: typesense/typesense:0.23.1
environment:
- TYPESENSE_DATA_DIR=/data
- TYPESENSE_ENABLE_CORS=true
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
ports:
- "8108:8108"
volumes:
- typesense-data:/data:rw
networks:
- local
prometheus:
image: prom/prometheus:latest
container_name: prometheus
restart: unless-stopped
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--web.enable-lifecycle'
expose:
- 9090
ports:
- "9090:9090"
networks:
- local
exporter:
build: .
container_name: typesense-exporter
restart: unless-stopped
environment:
- TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
- TYPESENSE_URL=http://typesense:8108
- TYPESENSE_EXPORTER_PORT=${EXPORTER_PORT:-9101}
expose:
- ${EXPORTER_PORT:-9101}
networks:
- local
volumes:
typesense-data:
prometheus_data:
networks:
local:
driver: bridge