-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
executable file
·48 lines (44 loc) · 1.01 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
version: '3'
services:
python:
build: ./py_read_rtlamr
stop_grace_period: 20s
# change to ../variables.txt to exclude from git
env_file: ./variables.txt
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "2"
restart: unless-stopped
depends_on:
- rtl_tcp
- rtlamr
volumes:
- ../data:/data:rw
rtl_tcp:
build: ./rtl_tcp
stop_grace_period: 4s
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "2"
# need to run privileged to make USB access "easier"
privileged: true
restart: unless-stopped
volumes:
- /dev/bus/usb:/dev/bus/usb
rtlamr:
build: ./rtlamr
stop_grace_period: 4s
# change to ../variables.txt to exclude from git
env_file: ./variables.txt
logging:
driver: "json-file"
options:
max-size: "5m"
max-file: "2"
restart: unless-stopped
depends_on:
- rtl_tcp