-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
102 lines (94 loc) · 2.02 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
92
93
94
95
96
97
98
99
100
101
102
version: '3.2'
services:
arduino:
build:
context: .
dockerfile: docker/arduino/Dockerfile
image: sensorbox-arduino
container_name: sensorbox-arduino
volumes:
- type: bind
source: ./arduino/
target: /usr/sketch/
- type: bind
source: /tmp/.X11-unix
target: /tmp/.X11-unix
command: "sh ./bin/startup.sh"
devices:
- dev/rfcomm0
- dev/tty
- dev/bus/usb
tty: true
network_mode: "host"
privileged: true
environment:
- DISPLAY=unix:0
nodejs:
build:
context: .
dockerfile: docker/nodejs/Dockerfile
image: sensorbox-nodejs
container_name: sensorbox-nodejs
volumes:
- type: bind
source: ./nodejs/
target: /usr/share/app
privileged: true
devices:
- dev/rfcomm0
- dev/tty
- dev/bus/usb
ports:
- "8585:8585"
command: "sh ./bin/startup.sh"
logging:
options:
max-size: "200k"
max-file: "10"
restart: always
vuejs:
build:
context: .
dockerfile: docker/vuejs/Dockerfile
image: sensorbox-vuejs
container_name: sensorbox-vuejs
volumes:
- type: bind
source: ./vuejs/
target: /usr/share/app
ports:
- "9595:9595"
command: "sh ./bin/startup.sh"
logging:
options:
max-size: "200k"
max-file: "10"
restart: always
vuejs-build:
build:
context: .
dockerfile: docker/vuejs/Dockerfile
image: sensorbox-vuejs
container_name: sensorbox-vuejs
volumes:
- type: bind
source: ./vuejs/
target: /usr/share/app
command: "npm run build"
server:
image: sensorbox-nodejs
volumes:
- type: bind
source: ./vuejs/dist/
target: /usr/share/app/dist
- type: bind
source: ./server/
target: /usr/share/app
ports:
- "8989:8989"
working_dir: /usr/share/app
command: "bash ./server.sh"
restart: always
volumes:
mongodbvolume:
driver: local