Skip to content

Commit

Permalink
Merge pull request #62 from aerospike/update-docker
Browse files Browse the repository at this point in the history
merging
  • Loading branch information
hev authored Oct 25, 2024
2 parents 15a45d9 + 2e511a4 commit a4d1ac4
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 4 deletions.
2 changes: 1 addition & 1 deletion prism-image-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Add your features.conf file to container-volumes/avs/etc/avs.

### 3. Start the environment
```
docker compose up
docker compose -f docker-compose-dev.yml up
```

## Developing
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions prism-image-search/docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
services:
aerospike:
image: aerospike/aerospike-server-enterprise:7.0.0.2
ports:
- "3000:3000"
networks:
- avs-demo
volumes:
- ./container-volumes/aerospike/etc/aerospike:/opt/aerospike/etc/aerospike
command:
- "--config-file"
- "/opt/aerospike/etc/aerospike/aerospike.conf"
# use this line to store all index and vector data in the default namespace (test)
# - "/opt/aerospike/etc/aerospike/aerospike-single-namespace.conf"
healthcheck:
# test: [ "CMD", "asinfo", "-U", "admin", "-P", "admin", "-p", "3000", "-v", "build" ]
test: [ "CMD", "asinfo", "-p", "3000", "-v", "build" ]
interval: 5s
timeout: 20s
retries: 10
avs:
image: aerospike/aerospike-vector-search:0.10.0
depends_on:
aerospike:
condition: service_healthy
networks:
- avs-demo
volumes:
- ./container-volumes/avs/etc/aerospike-vector-search:/etc/aerospike-vector-search
healthcheck:
test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"]
interval: 5s
timeout: 20s
retries: 10
app:
image: prism:latest
depends_on:
avs:
condition: service_healthy
ports:
- "8080:8080"
networks:
- avs-demo
environment:
AVS_HOST: avs
AVS_PORT: "5000"
APP_NUM_QUOTES: "5000"
GRPC_DNS_RESOLVER: native
volumes:
- ./container-volumes/prism/images:/prism/static/images/data

networks:
avs-demo: {}
2 changes: 1 addition & 1 deletion prism-image-search/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
timeout: 20s
retries: 10
app:
image: prism:latest
image: aerospike/prism-search-example:latest
depends_on:
avs:
condition: service_healthy
Expand Down
2 changes: 1 addition & 1 deletion quote-semantic-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Add your features.conf file to container-volumes/avs/etc/aerospike-vector-search

### 3. Start the environment
```
docker compose up
docker compose -f docker-compose-dev.yml up
```

## Developing
Expand Down
55 changes: 55 additions & 0 deletions quote-semantic-search/docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
services:
aerospike:
image: aerospike/aerospike-server-enterprise:7.0.0.2
# ports:
# - "3000:3000"
networks:
- avs-demo
volumes:
- ./container-volumes/aerospike/etc/aerospike:/opt/aerospike/etc/aerospike
command:
- "--config-file"
- "/opt/aerospike/etc/aerospike/aerospike.conf"
# use this line to store all index and vector data in the default namespace (test)
# - "/opt/aerospike/etc/aerospike/aerospike-single-namespace.conf"
healthcheck:
# test: [ "CMD", "asinfo", "-U", "admin", "-P", "admin", "-p", "3000", "-v", "build" ]
test: [ "CMD", "asinfo", "-p", "3000", "-v", "build" ]
interval: 5s
timeout: 20s
retries: 10
avs:
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
healthcheck:
test: ["CMD", "curl", "-f", "http://avs:5040/manage/rest/v1"]
interval: 5s
timeout: 20s
retries: 10
app:
image: quote-search:latest
depends_on:
avs:
condition: service_healthy
ports:
- "8080:8080"
networks:
- avs-demo
volumes:
- ./container-volumes/quote-search/data:/container-volumes/quote-search/data
environment:
AVS_HOST: avs
AVS_PORT: "5000"
APP_NUM_QUOTES: "5000"
GRPC_DNS_RESOLVER: native

networks:
avs-demo: {}
2 changes: 1 addition & 1 deletion quote-semantic-search/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ services:
timeout: 20s
retries: 10
app:
image: quote-search
image: aerospike/quote-search-example:latest
depends_on:
avs:
condition: service_healthy
Expand Down

0 comments on commit a4d1ac4

Please sign in to comment.