/
docker-compose.yaml
57 lines (54 loc) · 1.66 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
48
49
50
51
52
53
54
55
56
57
# docker-compose.yml
version: "3.3"
services:
butler-sos:
image: ptarmiganlabs/butler-sos:9.3.1
container_name: butler-sos
restart: always
volumes:
# Make config file and log files accessible outside of container
- ./config:/nodeapp/config
- ./log:/nodeapp/log
ports:
- 9997:9997/udp # User events from Sense
- 9996:9996/udp # Log events from Sense
environment:
- NODE_ENV=production # Means that Butler SOS will read config data from production.yaml
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "5m"
networks:
- senseops
influxdb:
image: influxdb:1.8.10
container_name: influxdb
restart: always
volumes:
- ./influxdb/data:/var/lib/influxdb # Mount for influxdb data directory
- ./influxdb/config/:/etc/influxdb/ # Mount for influxdb configuration
ports:
# The API for InfluxDB is served on port 8086
- 8086:8086
- 8082:8082
environment:
# Disable usage reporting
- INFLUXDB_REPORTING_DISABLED=true
networks:
- senseops
grafana:
image: grafana/grafana:9.1.0
container_name: grafana
restart: always
ports:
- 3000:3000
volumes:
- ./grafana/data:/var/lib/grafana
environment:
- GF_INSTALL_PLUGINS=grafana-clock-panel
networks:
- senseops
networks:
senseops:
driver: bridge