-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
50 lines (48 loc) · 1.41 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
volumes:
iox_data: {}
postgres_data: {}
grafana_data: {}
services:
iox:
image: ghcr.io/metrico/influxdb-edge-musl:latest
container_name: iox
volumes:
- ./data:/data
environment:
INFLUXDB3_MAX_HTTP_REQUEST_SIZE: "10485760"
INFLUXDB3_GEN1_DURATION: "10m"
INFLUXDB3_WAL_FLUSH_INTERVAL: "1s"
INFLUXDB3_WAL_SNAPSHOT_SIZE: "600"
INFLUXDB3_NUM_WAL_FILES_TO_KEEP: "50"
INFLUXDB3_WAL_MAX_WRITE_BUFFER_SIZE: "100000"
INFLUXDB3_BUFFER_MEM_LIMIT_MB: "5000"
INFLUXDB3_PARQUET_MEM_CACHE_SIZE_MB: "1000"
INFLUXDB3_FORCE_SNAPSHOT_MEM_THRESHOLD: "70%"
INFLUXDB3_TELEMETRY_DISABLE_UPLOAD: true
INFLUXDB3_NODE_IDENTIFIER_PREFIX: "iox-node1"
INFLUXDB3_BUCKET: "iox"
INFLUXDB3_OBJECT_STORE: "file"
INFLUXDB3_DB_DIR: "/data"
restart: unless-stopped
expose:
- 8181
ports:
- 8086:8181
- 8181:8181
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- INFLUX_HOST=iox:8082
- INFLUX_TOKEN=${INFLUXDB_TOKEN}
- INFLUX_ORG=company
- INFLUX_BUCKET=sensors
- GF_INSTALL_PLUGINS=influxdata-flightsql-datasource
volumes:
- ./demo/grafana/datasources:/etc/grafana/provisioning/datasources
# - ./demo/grafana/dashboards:/etc/grafana/provisioning/dashboards
- grafana_data:/var/lib/grafana/
restart: always
depends_on:
- iox