I am trying to setup Snyk broker for gitlab private instance and broker should run in docker container.
docker run --restart=always
-p 8000:8000
-e BROKER_TOKEN=secret-broker-token
-e GITLAB_TOKEN=secret-gitlab-token
-e GITLAB=your.gitlab.domain.com
-e BROKER_CLIENT_URL=http://my.broker.client:8000
-e PORT=8000
snyk/broker:gitlab
Here what will be the BROKER_CLIENT_URL
The BROKER_CLIENT_URL
is important for webhooks, so it needs to be reachable from your Gitlab instance. It would generally be the IP address or FQDN of your Broker container.