-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.maxed
More file actions
92 lines (86 loc) · 2.64 KB
/
docker-compose.maxed
File metadata and controls
92 lines (86 loc) · 2.64 KB
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
version: '3.8'
services:
rigctld:
image: librespace/hamlib:4.0
user: '999'
read_only: true
environment:
MODEL: '1'
restart: 'unless-stopped'
command: 'rigctld'
rotctld:
image: librespace/hamlib:4.0
user: '999'
read_only: true
environment:
MODEL: '1'
SET_CONF: 'min_az=0,max_az=360,min_el=0,max_el=180'
device_cgroup_rules:
- 'c 188:* rwm'
#devices:
# - '/dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_05670031BD0A-if00-port0:/dev/rot0'
# - '/dev/ttyUSB1:/dev/rot0'
restart: 'unless-stopped'
command: 'rotctld'
stop_grace_period: 1s
gpsd:
image: librespace/satnogs-client:1.9.3 # Use the same as satnogs_client service
user: '999'
read_only: true
command: 'gpsd -b -N -G /dev/gps0'
device_cgroup_rules:
- 'c 188:* rwm'
#devices:
# - '/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0:/dev/gps0'
# - '/dev/ttyUSB0:/dev/gps0'
restart: 'unless-stopped'
stop_grace_period: 1s
satnogs_client:
image: librespace/satnogs-client:1.9.3
user: '999'
read_only: true
init: true # init is needed when lauching processes in the background
env_file:
- ./station.env
environment:
SATNOGS_RIG_IP: 'rigctld'
SATNOGS_RIG_PORT: '4532'
SATNOGS_ROT_MODEL: 'ROT_MODEL_NETROTCTL'
SATNOGS_ROT_PORT: 'rotctld:4533'
SATNOGS_GPSD_HOST: 'gpsd' # enable GPS in station.env
SATNOGS_GPSD_PORT: '2947'
command: 'satnogs-client' # default
device_cgroup_rules:
- 'c 189:* rwm'
devices:
- '/dev/bus/usb'
volumes:
- type: 'tmpfs'
target: '/tmp'
- type: 'volume'
source: 'satnogs-client'
target: '/var/lib/satnogs-client'
restart: 'unless-stopped'
stop_grace_period: 1s
auto-scheduler:
image: librespace/satnogs-auto-scheduler:0.4 # stable
# image: librespace/satnogs-auto-scheduler:master # latest
user: '999'
command: 'bash -c "while true; do sleep 30; schedule_single_station.py -s $$SATNOGS_STATION_ID $$AUTO_SCHEDULER_EXTRA; sleep 3600; done"'
read_only: true
env_file:
- ./station.env
environment:
CACHE_DIR: '/var/lib/satnogs-client/.cache/auto-scheduler'
depends_on:
- satnogs_client
volumes:
- type: 'tmpfs'
target: '/tmp'
- type: 'volume'
source: 'satnogs-client'
target: '/var/lib/satnogs-client'
restart: unless-stopped # du not use with exiting client as this will just loop
stop_grace_period: 1s
volumes:
satnogs-client: # persistent named volume for the station