-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.yaml
48 lines (47 loc) · 1.31 KB
/
install.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
version: '3.9'
services:
sensor1:
image: dockerwatch/sensor1:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- DB_INFLUXDB_INIT_ADMIN_TOKEN=dockerwatch
- DB_INFLUXDB_INIT_ORG=dockerwatch
- DB_INFLUXDB_INIT_BUCKET=dockerwatch
- DB_URL=http://db:8086
- SENSORS_SENSOR1_LOOKUP_FREQUENCY=5000
depends_on:
- db
command: ["npm", "run", "start"]
db:
image: influxdb:2.4
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=dockerwatch
- DOCKER_INFLUXDB_INIT_PASSWORD=dockerwatch
- DOCKER_INFLUXDB_INIT_ORG=dockerwatch
- DOCKER_INFLUXDB_INIT_BUCKET=dockerwatch
- DOCKER_INFLUXDB_INIT_RETENTION=1w
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=dockerwatch
api:
image: dockerwatch/api:latest
ports:
- '8854:8854'
environment:
- DB_INFLUXDB_INIT_ORG=dockerwatch
- DB_INFLUXDB_INIT_BUCKET=dockerwatch
- DB_INFLUXDB_INIT_ADMIN_TOKEN=dockerwatch
- DB_URL=http://db:8086
depends_on:
- db
- sensor1
command: ["npm", "run", "start"]
web:
image: dockerwatch/frontend-web:latest
ports:
- '8855:8855'
environment:
- API_URL=http://127.0.0.1:8854
depends_on:
- api
command: ["npm", "run", "dev:docker"]