Stations
Stations microservice API
Documentation
Installation
Docker
docker pull ghcr.io/hidromatologia-v2/stations:0.0.2
Docker compose
docker compose -f ./docker-compose.dev.yaml up -d
Binary
You can use the binary present in Releases. Or compile your own with.
go install github.com/hidromatologia-v2/stations@latest
Config
Variable |
Description |
Example |
MEMPHIS_STATION |
Name for the station to CREATE/CONNECT |
alerts |
MEMPHIS_PRODUCER |
Alerts producer name |
alerts-producer |
MEMPHIS_HOST |
Host or IP of the Memphis service |
10.10.10.10 |
MEMPHIS_USERNAME |
Memphis Username |
root |
MEMPHIS_PASSWORD |
Memphis password, if ignored MEMPHIS_CONN_TOKEN will be used |
memphis |
MEMPHIS_CONN_TOKEN |
Memphis connection token, if ignored MEMPHIS_PASSWORD will be used |
ABCD |
POSTGRES_DSN |
Postgres DSN to be used |
host=127.0.0.1 user=sulcud password=sulcud dbname=sulcud port=5432 sslmode=disable |
Binary
stations HOST:PORT [HOST:PORT [...]]
Coverage