Skip to content

Commit

Permalink
Update Docker Compose files and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowplum committed Oct 28, 2024
1 parent 84570f5 commit 286d7cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
5 changes: 3 additions & 2 deletions prism-image-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ docker build -t prism . -f Dockerfile-prism
```
### 2. Add features.conf
AVS needs an Aerospike features.conf file with the vector-search feature enabled.
You can set the `features.conf` location in an environment variable: `FEATURE_KEY'
or add your features.conf file to `container-volumes/avs/etc/aerospike-vector-search`
Optionally set `FEATURE_KEY` environment variable with the location of your `features.conf` file.

If no variable is set it will expect the features.conf to be in `container-volumes/avs/etc/aerospike-vector-search`

### 3. Start the environment
```
Expand Down
5 changes: 4 additions & 1 deletion prism-image-search/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,23 @@ services:
retries: 10
avs:
image: aerospike/aerospike-vector-search:0.10.0
environment:
FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}"
depends_on:
aerospike:
condition: service_healthy
networks:
- avs-demo
volumes:
- ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search
- ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"]
interval: 5s
timeout: 20s
retries: 10
app:
image: prism:latest
image: "prism:latest"
depends_on:
avs:
condition: service_healthy
Expand Down
6 changes: 4 additions & 2 deletions quote-semantic-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ docker build -t quote-search . -f Dockerfile-quote-search

### 2. Add features.conf
AVS needs an Aerospike features.conf file with the vector-search feature enabled.
You can set the `features.conf` location in an environment variable: `FEATURE_KEY'
or add your features.conf file to `container-volumes/avs/etc/aerospike-vector-search`
Optionally set `FEATURE_KEY` environment variable with the location of your `features.conf` file.

If no variable is set it will expect the features.conf to be in `container-volumes/avs/etc/aerospike-vector-search`



### 3. Start the environment
Expand Down
9 changes: 5 additions & 4 deletions quote-semantic-search/docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,24 @@ services:
timeout: 20s
retries: 10
avs:
image: aerospike/aerospike-vector-search:0.10.0
environment:
FEATURE_KEY: "${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}"
depends_on:
aerospike:
condition: service_healthy
image: aerospike/aerospike-vector-search:0.10.0
# ports:
# - "5002:5002"
networks:
- avs-demo
volumes:
- ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search
- ${FEATURE_KEY:-./container-volumes/avs/etc/aerospike-vector-search/features.conf}:/etc/aerospike-vector-search/features.conf:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"]
interval: 5s
timeout: 20s
retries: 10
app:
image: quote-search:latest
image: "quote-search:latest"
depends_on:
avs:
condition: service_healthy
Expand Down

0 comments on commit 286d7cc

Please sign in to comment.