Skip to content

Commit

Permalink
Add compose dependencies (#45)
Browse files Browse the repository at this point in the history
* fix: Add depends_on to docker compose
  • Loading branch information
Jesse S authored Jul 24, 2024
1 parent e4f327e commit c96ee59
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions prism-image-search/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,31 @@ services:
command:
- "--config-file"
- "/opt/aerospike/etc/aerospike/aerospike.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.9.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:
Expand Down
17 changes: 17 additions & 0 deletions quote-semantic-search/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,33 @@ services:
command:
- "--config-file"
- "/opt/aerospike/etc/aerospike/aerospike.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.9.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
depends_on:
avs:
condition: service_healthy
ports:
- "8080:8080"
networks:
Expand Down

0 comments on commit c96ee59

Please sign in to comment.