This repository has been archived by the owner on May 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (91 loc) · 1.75 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.9"
services:
redis:
image: redis:latest
container_name: "redis"
restart: always
networks:
- backend
influx:
image: influxdb:latest
container_name: "influx"
restart: always
ports:
- "8086:8086"
env_file:
- influx-variables.env
volumes:
- ./database/influx:/var/lib/influxdb2
- ./database/influx:/etc/influxdb2
networks:
- backend
- monitor
grafana:
image: grafana/grafana:latest
container_name: "grafana"
restart: always
ports:
- "3000:3000"
networks:
- monitor
depends_on:
- influx
mongo:
image: mongo:latest
container_name: "mongo"
restart: always
ports:
- "27017:27017"
volumes:
- ./database/mongo:/data/db
- ./database/mongo:/data/configdb
networks:
- backend
env_file:
- mongo-variables.env
backend:
build: ./server
container_name: "backend"
ports:
- "8000:8000"
- "9229:9229"
volumes:
- ./server:/usr/src/app/server
- /usr/src/app/server/node_modules
networks:
- backend
- frontend
depends_on:
- redis
- influx
- mongo
frontend:
build: ./web
container_name: "frontend"
ports:
- "8080:8080"
volumes:
- ./web:/usr/src/app/web
- /usr/src/app/web/node_modules
networks:
- frontend
depends_on:
- backend
client:
build: ./client
container_name: "client"
volumes:
- ./client:/usr/src/app/client
- /usr/src/app/client/node_modules
- /run/udev:/run/udev:ro
- /dev:/dev
network_mode: "host"
devices:
- "/dev/ttyACM0:/dev/ttyACM0"
networks:
backend:
frontend:
monitor:
volumes:
mongodb:
influx: