-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.14 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
services:
influxdb:
image: influxdb:2.7
container_name: flytrap-influxdb
ports:
- "8086:8086"
volumes:
- influxdb-data:/var/lib/influxdb2
- influxdb-config:/etc/influxdb2
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=admin
- DOCKER_INFLUXDB_INIT_PASSWORD=flytrap-admin-password
- DOCKER_INFLUXDB_INIT_ORG=flytrap
- DOCKER_INFLUXDB_INIT_BUCKET=detections
- DOCKER_INFLUXDB_INIT_RETENTION=7d
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=flytrap-super-secret-token-change-in-production
restart: unless-stopped
healthcheck:
test: ["CMD", "influx", "ping"]
interval: 10s
timeout: 5s
retries: 5
grafana:
image: grafana/grafana:latest
container_name: flytrap-grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
restart: unless-stopped
depends_on:
- influxdb
volumes:
influxdb-data:
influxdb-config:
grafana-data: