diff --git a/deployment/docker-compose/README.md b/deployment/docker-compose/README.md index 4409e7bd3f..34d829d801 100644 --- a/deployment/docker-compose/README.md +++ b/deployment/docker-compose/README.md @@ -51,6 +51,31 @@ This will expose the following services to the host machine - Backend: Available on ports 8080 and 3003 +## Run Opik backend locally and the rest of the components with docker-compose +1. In `nginx_default_local.conf` replace +```bash +http://backend:8080 +``` +with your localhost + +For Mac/Windows (Docker Desktop) +```bash +http://host.docker.internal:8080 +``` +For Linux +```bash +http://172.17.0.1:8080 +``` + +2. Run docker-compose including exposing ports to localhost +```bash +docker compose -f docker-compose.yaml -f docker-compose.override.yaml up -d +``` +Stop backend container, cause you don't need it.. + + +3. Update your Opik Backend configuration to connect to all databases on the localhost, and run it + ## Stop opik