diff --git a/deployment/docker-compose/README.md b/deployment/docker-compose/README.md index 29daa98ec7..f6162ea497 100644 --- a/deployment/docker-compose/README.md +++ b/deployment/docker-compose/README.md @@ -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 ``` @@ -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 ``` diff --git a/deployment/docker-compose/docker-compose-build.yaml b/deployment/docker-compose/docker-compose-build.yaml deleted file mode 100644 index c5a04e04a0..0000000000 --- a/deployment/docker-compose/docker-compose-build.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: opik - -services: - mysql: - extends: - file: docker-compose.yaml - service: mysql - - redis: - extends: - file: docker-compose.yaml - service: redis - - clickhouse: - extends: - file: docker-compose.yaml - service: clickhouse - - backend: - build: - context: ../../apps/opik-backend - dockerfile: Dockerfile - args: - OPIK_VERSION: latest - extends: - file: docker-compose.yaml - service: backend - - frontend: - build: - context: ../../apps/opik-frontend - dockerfile: Dockerfile - args: - OPIK_VERSION: latest - extends: - file: docker-compose.yaml - service: frontend - -networks: - default: \ No newline at end of file diff --git a/deployment/docker-compose/docker-compose.yaml b/deployment/docker-compose/docker-compose.yaml index 4330877c58..a065fe136e 100644 --- a/deployment/docker-compose/docker-compose.yaml +++ b/deployment/docker-compose/docker-compose.yaml @@ -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"] @@ -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: