-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.yaml
47 lines (42 loc) · 1.17 KB
/
docker-compose.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.9"
services:
influxdb:
container_name: influxdb
image: influxdb:2.7.6-alpine
volumes:
- influxdb-lib:/var/lib/influxdb2
env_file:
# BE SURE TO CHANGE THIS LINE BEFORE GOING TO PRODUCTION
- ./influx2.env
ports:
- 8086:8086
restart: always
privileged: true
grafana:
container_name: grafana
image: grafana/grafana-oss:10.4.4
volumes:
# Note: The 'ro' option specifies that the volume is mounted in read-only mode.
# However, certain files such as grafana.ini may require write access. Be mindful of security implications when removing ':ro'.
# Docs : https://docs.docker.com/compose/compose-file/compose-file-v3/#short-syntax-3
- ./grafana/etc:/etc/grafana:ro
- grafana-lib:/var/lib/grafana
- grafana-log:/var/log/grafana
links:
- influxdb:influxdb
env_file:
# BE SURE TO CHANGE THIS LINE BEFORE GOING TO PRODUCTION
- ./grafana.env
ports:
- 3000:3000
depends_on:
- influxdb
restart: always
privileged: true
volumes:
influxdb-lib:
external: false
grafana-lib:
external: false
grafana-log:
external: false