-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-example.yaml
47 lines (43 loc) · 1.4 KB
/
docker-compose-example.yaml
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"
networks:
bunnynet:
driver: bridge
services:
openobserve:
image: openobserve/openobserve:v0.12.1
restart: unless-stopped
volumes:
- ./openob:/data # Maps the local 'data' directory to '/data' in the container
environment:
ZO_ROOT_USER_EMAIL: ${SEARCH_EMAIL}
ZO_ROOT_USER_PASSWORD: ${SEARCH_PWD}
ports: ["5080:5080"]
networks: [bunnynet]
prometheus:
image: prom/prometheus:v2.54.1
user: root
restart: unless-stopped
command: --config.file=/etc/prometheus/prometheus.yaml --web.config.file=/etc/prometheus/web.yaml --web.route-prefix=/ --storage.tsdb.path=/prometheus --storage.tsdb.retention.time=90d --web.enable-lifecycle --web.enable-admin-api
ports:
- "9090:9090"
volumes:
- ./prometheus.yaml:/etc/prometheus/prometheus.yaml
- ./web.yaml:/etc/prometheus/web.yaml
- ./prom:/prometheus
networks: [bunnynet]
vector:
image: timberio/vector:0.X-alpine
restart: unless-stopped
ports: ["6514:6514/udp", "9598:9598"]
volumes:
- ./vector.yaml:/etc/vector/vector.yaml
- ./stat-transform.vrl:/etc/vector/stat-transform.vrl
- ./vector:/logs
environment:
SEARCH_EMAIL: ${SEARCH_EMAIL}
SEARCH_PWD: ${SEARCH_PWD}
PROM_USER: ${PROM_USER}
PROM_PWD: ${PROM_PWD}
BUNNY_TOKEN: ${BUNNY_TOKEN}
networks: [bunnynet]
depends_on: [openobserve, prometheus]