This repository has been archived by the owner on Nov 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.local.yaml
83 lines (82 loc) · 2.28 KB
/
docker-compose.local.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
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
version: '3'
services:
database:
build:
context: https://github.com/M4MController/controller-web.git
dockerfile: Dockerfile-db
environment:
POSTGRES_USER: "m4m"
POSTGRES_PASSWORD: "12345"
POSTGRES_DB: "m4m"
restart: always
ports:
- 5432:5432
frontend:
build:
context: https://github.com/M4MController/frontend.git
dockerfile: Dockerfile
args:
MODE: lite
GOOGLE_API_MAPS_KEY: google_api_maps_key
ports:
- 80:80
depends_on:
- backend
restart: always
backend:
build:
context: https://github.com/M4MController/controller-web.git
dockerfile: Dockerfile
ports:
- 5000:5000
depends_on:
- database
restart: always
sensor-obd:
build:
context: https://github.com/M4MController/sensor-obd.git
dockerfile: Dockerfile
depends_on:
- backend
restart: always
privileged: true
environment:
URI: http://backend:5000
USE_STUBS: 1
DEVICE: "/dev/obd"
volumes:
- "/dev/obd:/dev/obd"
sensor-gps:
build:
context: https://github.com/M4MController/sensor-gps.git
dockerfile: Dockerfile
depends_on:
- backend
restart: always
privileged: true
environment:
USE_STUBS: 1
URI: http://backend:5000
radio:
build:
context: https://github.com/M4MController/controller-radio.git
dockerfile: Dockerfile
volumes:
- "/dev/xbee:/dev/xbee"
environment:
DB_URI: postgresql://m4m:12345@database:5432/m4m
DEVICE: "/dev/xbee"
USE_STUBS: 1
depends_on:
- database
privileged: true
restart: always
synchronizer:
build:
context: https://github.com/M4MController/controller-sync.git
dockerfile: Dockerfile
environment:
DB_URI: postgresql://m4m:12345@database:5432/m4m
depends_on:
- database
restart: always