satnogs-nixos-deployment/machines/dl1ssk/satnogs-docker-compose.yml

50 lines
1.4 KiB
YAML

version: '3.8'
services:
rigctld:
image: librespace/hamlib:latest
user: '999'
read_only: true
environment:
MODEL: '1'
restart: 'unless-stopped'
command: 'rigctld'
satnogs_client:
image: librespace/satnogs-client:master # LSF stable docker image
#image: librespace/satnogs-client:master-unstable # LSF experimental docker image
#image: librespace/satnogs-client:lsf-addons # LSF stable + gr-satellites and addons
#image: librespace/satnogs-client:lsf-dev-addons # LSF unstable + gr-satellites and addons
user: '999'
read_only: true
init: true # init is needed when launching processes in the background
#env_file:
# - ./station.env
environment:
SATNOGS_RIG_IP: 'rigctld'
SATNOGS_RIG_PORT: '4532'
SATNOGS_ANTENNA: 'RX'
SATNOGS_RF_GAIN: '5'
SATNOGS_RX_SAMP_RATE: '2.048e6'
SATNOGS_SOAPY_RX_DEVICE: 'driver=rtlsdr'
SATNOGS_STATION_ELEV: '225'
SATNOGS_STATION_ID: '517'
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
volumes:
satnogs-client: # persistent named volume for the station