Starting the osctrl-api container always starts the application on port 9000 even when setting it via Environment, config or parameter.
/opt/osctrl# ./bin/osctrl-api --port 9002 --db-user osctrl --db-host osctrl-postgres --db-pass osctrl --redis-host osctrl-redis --jwt-secret c1a....
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:306","message":"Initializing backend..."}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:248","message":"Checking for the latest release..."}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:310","message":"Connection to backend successful!"}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:323","message":"Initializing cache..."}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:327","message":"Connection to cache successful!"}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:339","message":"Initialize users"}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:341","message":"Initialize tags"}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:255","message":"osctrl-api (0.5.9) is up to date with the suggested release (0.5.9), latest 0.5.9"}
{"level":"info","time":"2026-09-25T10:04:08Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:349","message":"Initialize environment"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:352","message":"Environment cache wired to Redis"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:377","message":"Posture system disabled (enable with --posture-enabled)"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:387","message":"Alerting system disabled (enable with --alerts-enabled)"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:413","message":"Health system disabled (enable with --health-enabled)"}
{"level":"info","rpid":"osctrl.net","origins":["https://osctrl.net"],"time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:436","message":"WebAuthn enabled"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:444","message":"Initialize settings"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:446","message":"Initialize nodes"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:448","message":"Initialize queries"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:451","message":"Initialize console"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:453","message":"Initialize file explorer"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:472","message":"Initialize carves"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:474","message":"Loading service settings"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:478","message":"Seeding service config from YAML"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:504","message":"Resolving service config from DB"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:526","message":"Service config API is disabled (enable with --service-config-enabled) — sections are still seeded and resolved, change the service_config rows or the YAML file directly"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:542","message":"Initialize audit log"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:550","message":"Loading osquery tables from ./data/5.23.1.json"}
{"level":"warn","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:553","message":"Failed to load osquery tables: open ./data/5.23.1.json: no such file or directory"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:558","message":"Initializing handlers"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:647","message":"Initializing router"}
{"level":"info","time":"2026-09-25T10:04:09Z","caller":"/home/runner/work/osctrl/osctrl/cmd/api/main.go:1329","message":"osctrl-api v0.5.9 - HTTP listening 127.0.0.1:9000"}
Hi,
Starting the osctrl-api container always starts the application on port 9000 even when setting it via Environment, config or parameter.