Deephaven Docker Compose Examples
-
Copy the docker-compose.yml to a local directory; or download and unzip main.zip; or clone the repository; and navigate to the same directory. For example:
curl -o docker-compose.yml https://raw.githubusercontent.com/devinrsmith/deephaven-compose/main/docker-compose.yml
-
Download the latest images:
docker-compose pull
-
Create project:
docker-compose up -d
-
Connect to the web IDE at http://localhost:10000
-
List the state of the containers:
docker-compose ps
-
Follow the logs of all containers:
docker-compose logs -f
Control-c to exit.
-
Follow the logs of a specific container:
docker-compose logs -f grpc-api
Control-c to exit.
-
Destroy all containers:
docker-compose down
To destroy all containers, and remove the volumes associated with it, add the
-vflag:docker-compose down -v
-
Project name: Add
-p <project-name>to your docker-compose commands to give your project a more meaningful name. For example:docker-compose -p my-first-project up -d
Alternatively, you may use the
COMPOSE_PROJECT_NAMEenvironment variable.export COMPOSE_PROJECT_NAME=my-first-project docker-compose up -d -
Port: Set the
PORTenvironment variable to select a different port. For example:export PORT=10001 docker-compose up -d -
Multiple projects: Set a project name and port to spin up multiple projects at the same time:
PORT=10001 docker-compose -p foo-project up -d PORT=10002 docker-compose -p bar-project up -d
-
Set a specific version: Set the
VERSIONenvironment variable to select a different docker tag. For example:export VERSION=0.2.0 docker-compose up -d