From f0c9453459b4cc673e2d4690d74b7918434b834c Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 17 May 2025 12:51:26 +0000 Subject: [PATCH] fix(server): add AFFINE_INDEXER_SEARCH_ENDPOINT to self-host compose.yml (#12324) ## Summary by CodeRabbit - **Chores** - Added a `.gitignore` file to prevent the `.env` file in the self-hosted Docker directory from being tracked by Git. - **New Features** - Introduced a new environment variable for the search endpoint in the Docker Compose configuration for improved service connectivity. --- .docker/selfhost/.gitignore | 1 + .docker/selfhost/compose.yml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 .docker/selfhost/.gitignore diff --git a/.docker/selfhost/.gitignore b/.docker/selfhost/.gitignore new file mode 100644 index 0000000000..4c49bd78f1 --- /dev/null +++ b/.docker/selfhost/.gitignore @@ -0,0 +1 @@ +.env diff --git a/.docker/selfhost/compose.yml b/.docker/selfhost/compose.yml index e473b194f9..53b09824b7 100644 --- a/.docker/selfhost/compose.yml +++ b/.docker/selfhost/compose.yml @@ -23,6 +23,7 @@ services: environment: - REDIS_SERVER_HOST=redis - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} + - AFFINE_INDEXER_SEARCH_ENDPOINT=http://indexer:9308 restart: unless-stopped affine_migration: @@ -38,6 +39,7 @@ services: environment: - REDIS_SERVER_HOST=redis - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} + - AFFINE_INDEXER_SEARCH_ENDPOINT=http://indexer:9308 depends_on: postgres: condition: service_healthy