-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (45 loc) · 914 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (45 loc) · 914 Bytes
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
version: '3'
services:
webapp:
image: webapp
build: ./webapp
container_name: webapp
#volumes:
#- ./webapp/app:/app/ # strictly for development purposes; this statement overrides the /app folder, therefore the developer has to manually run `npm install`
depends_on:
- sensor
- mongodb
ports:
- "80:8080"
networks:
aqisensornet:
aliases:
- webapp
sensor:
image: sensor
build: ./sensor
container_name: sensor
depends_on:
- mongodb
devices:
- "/dev/ttyUSB0:/dev/ttyUSB0"
networks:
aqisensornet:
aliases:
- sensor
mongodb:
image: mongodb
build: ./database
container_name: mongodb
volumes:
- mongodbvolume:/data/db
ports:
- "27017:27017"
networks:
aqisensornet:
aliases:
- database
volumes:
mongodbvolume:
networks:
aqisensornet: