[Disco]very service
7.1K
Disco is a discovery service.
docker-compose.yml
version: "3.7"
services:
disco:
image: slinkgo/disco:alpine
container_name: disco
ports:
- "127.0.0.1:8080:8080"
environment:
- LOGGING_LEVEL=WARNING
All requests to service are authorized. Two types of authorization are supported (both can be used together)
DISCO_SECRET_KEY should be set; this key is used for JWT signature checks)DISCO_USERS should be set in form user1:pass1,user2:pass2)DISCO_MONITORING_ENABLED=true
DISCO_SERVICE_PORT=8080
For now only inmem backend is supported. This implies running Disco in single-node mode. For clustered/HA deployments other backends should be implemented (TBD).
DISCO_BACKEND_TYPE="inmem"
For these images should be empty. Defines path to backend plugins.
DISCO_PLUGIN_PATH=""
DISCO_PING_INTERVAL=1s
failingDISCO_CLIENT_FAILING_THRESHOLD=3
downDISCO_CLIENT_DOWN_THRESHOLD=6
DISCO_CLIENT_REMOVE_THRESHOLD=9
DISCO_MAX_CLIENTS=1024
DISCO_LIMIT_RATE=10
DISCO_LIMIT_BURST=15
DISCO_USERS="admin:admin,user:user"
DISCO_SECRET_KEY=quite-a-long-secret-key-to-comply-with-internal-requirements
LOGGING_LEVEL=WARNING
Available values are:
Disco service supports authorization of incoming requests with JWT access token. To generate it, following command can be used:
docker run --rm -it slinkgo/disco:alpine disco --token [--tenant {TENANT NAME}] [--duration {1825d}]
Token includes tenant name, which allows using Disco in multi-tenant mode (i.e. when different sets of services are registered/discovered on one Disco service).
Content type
Image
Digest
sha256:4aa475662…
Size
10.4 MB
Last updated
almost 2 years ago
docker pull slinkgo/disco