https://github.com/devinrsmith/deephaven-compose
Deephaven Docker Compose Examples
https://github.com/devinrsmith/deephaven-compose
Last synced: 3 months ago
JSON representation
Deephaven Docker Compose Examples
- Host: GitHub
- URL: https://github.com/devinrsmith/deephaven-compose
- Owner: devinrsmith
- License: apache-2.0
- Created: 2021-05-27T21:37:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-01T14:05:49.000Z (almost 4 years ago)
- Last Synced: 2025-01-26T09:12:07.030Z (4 months ago)
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# deephaven-compose
Deephaven Docker Compose Examples### Workflow
* Copy the [docker-compose.yml](docker-compose.yml) to a local directory; or download and unzip [main.zip](https://github.com/devinrsmith/deephaven-compose/archive/refs/heads/main.zip); or clone the repository; and navigate to the same directory. For example:```sh
curl -o docker-compose.yml https://raw.githubusercontent.com/devinrsmith/deephaven-compose/main/docker-compose.yml
```* Download the latest images:
```sh
docker-compose pull
```* Create project:
```sh
docker-compose up -d
```
* Connect to the web IDE at [http://localhost:10000](http://localhost:10000)* List the state of the containers:
```sh
docker-compose ps
```* Follow the logs of all containers:
```sh
docker-compose logs -f
```
Control-c to exit.* Follow the logs of a specific container:
```sh
docker-compose logs -f grpc-api
```
Control-c to exit.* Destroy all containers:
```sh
docker-compose down
```
To destroy all containers, and remove the volumes associated with it, add the `-v` flag:
```sh
docker-compose down -v
```### Tips and tricks
* **Project name**:
Add `-p ` to your docker-compose commands to give your project a more meaningful name. For example:
```sh
docker-compose -p my-first-project up -d
```
Alternatively, you may use the `COMPOSE_PROJECT_NAME` environment variable.
```sh
export COMPOSE_PROJECT_NAME=my-first-project
docker-compose up -d
```* **Port**:
Set the `PORT` environment variable to select a different port. For example:
```sh
export PORT=10001
docker-compose up -d
```* **Multiple projects**:
Set a project name and port to spin up multiple projects at the same time:
```sh
PORT=10001 docker-compose -p foo-project up -d
PORT=10002 docker-compose -p bar-project up -d
```* **Set a specific version**:
Set the `VERSION` environment variable to select a different docker tag. For example:
```sh
export VERSION=0.2.0
docker-compose up -d
```