-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
57 lines (55 loc) · 1.7 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
version: '3'
services:
client:
image: '${DOCKER_CLIENT_IMAGE}'
restart: always
ports:
- 3000:3000
environment:
- SERVER_URL=${SERVER_URL:-ws://192.168.0.100:3000}
- CAMERA_URL=${CAMERA_URL:-http://192.168.0.103:81/stream}
mosquitto:
image: eclipse-mosquitto:2.0.14
ports:
- 1883:1883
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf
- mosquitto-data:/mosquitto/data
- mosquitto-log:/mosquitto/log
restart: always
influxdb:
image: influxdb:2.3-alpine
volumes:
# Mount for influxdb data directory and configuration
- influxdb2:/var/lib/influxdb2
ports:
- 8086:8086
environment:
# Use these same configurations parameters in your telegraf configuration, mytelegraf.conf.
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${INFLUXDB_USER:-nakuja}
- DOCKER_INFLUXDB_INIT_PASSWORD=${INFLUXDB_PASSWORD:-987654321}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG:-nakuja}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET:-telemetry}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_ADMIN_TOKEN:-myToken}
restart: always
telegraf:
image: telegraf:1.20-alpine
links:
- influxdb
volumes:
# Mount for telegraf config
- ./telegraf.conf:/etc/telegraf/telegraf.conf
environment:
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG:-nakuja}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET:-telemetry}
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=${INFLUXDB_ADMIN_TOKEN:-myToken}
depends_on:
- mosquitto
- influxdb
- client
restart: always
volumes:
influxdb2:
mosquitto-data:
mosquitto-log: