Skip to content

Deploy Center Docker Container

OliverShen edited this page Apr 17, 2023 · 17 revisions

Here is the deploy approach for Hydra Lab Center docker image.

1. Center env file setup

If you would like to overlap some env variables to enable/disable some submodules of Hydra Lab, you may include the key-value pairs in an env file. Format of the content should be as followed:

KEY1=VALUE1
KEY2=VALUE2

See the application.yml for available env variables (in form of ${XXX_YYY}).

Notice:

  • If the connected agent is started within docker, the env variable LOCAL_STORAGE_ENDPOINT (by default http://localhost:9886) for Center should be changed to "host.docker.internal" or the IP (public/private based on usage) of Center instance.
  • If the connected agent is started using jar package, no env variable is required to be set.

2. Center image startup

docker run -p 9886:9886 [--env-file "${PATH_TO_YOUR_ENV_FILE}"] ghcr.io/microsoft/hydra-lab-center:latest

Notice: When Center docker image is using local storage (STORAGE_TYPE=LOCAL), port mapping in the docker run command should be "-p 9886:9886", otherwise agent will visit an illegal storage server.

See also

For connection from Agent to Center:

Clone this wiki locally