Skip to content

Commit

Permalink
only one docker-compose.yaml for both modes (using version or build) …
Browse files Browse the repository at this point in the history
…and updates to the readme
  • Loading branch information
liyaka committed Sep 16, 2024
1 parent 899808e commit 8e60d92
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 44 deletions.
20 changes: 16 additions & 4 deletions deployment/docker-compose/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,18 @@

## Run docker-compose using the images

From the root of the project
Set opik version or it will use the latest images
If you want to use a specific version, set opik version like
```bash
export OPIK_VERSION=0.1.10
```

otherwise it will use the latest images

Run docker-compose
From the root of the project

```bash
cd deployment/docker-compose
OPIK_VERSION=0.1.10
docker compose up -d
```

Expand All @@ -22,5 +28,11 @@ From the root of the project

```bash
cd deployment/docker-compose
docker compose -f docker-compose-build.yaml up -d --build
docker compose up -d --build
```

## Stop opik

```bash
docker compose down
```
40 changes: 0 additions & 40 deletions deployment/docker-compose/docker-compose-build.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions deployment/docker-compose/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ services:

backend:
image: ghcr.io/comet-ml/opik/opik-backend:${OPIK_VERSION:-latest}
build:
context: ../../apps/opik-backend
dockerfile: Dockerfile
platform: linux/amd64
hostname: backend
command: ["bash", "-c", "./run_db_migrations.sh && ./entrypoint.sh"]
Expand Down Expand Up @@ -89,6 +92,9 @@ services:

frontend:
image: ghcr.io/comet-ml/opik/opik-frontend:${OPIK_VERSION:-latest}
build:
context: ../../apps/opik-frontend
dockerfile: Dockerfile
platform: linux/amd64
hostname: frontend
ports:
Expand Down

0 comments on commit 8e60d92

Please sign in to comment.