Skip to content

Commit

Permalink
added deployment for indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
Weldawadyathink committed Feb 8, 2024
1 parent 450180d commit a18377d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
3 changes: 2 additions & 1 deletion deployments/api/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ services:
- /opt/docker-files/api/proxy/letsencrypt:/etc/letsencrypt

networks:
apinet:
apinet:
name: apinet
12 changes: 12 additions & 0 deletions deployments/support/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@ version: '3.7'

services:

embedding-indexer:
image: weldawadyathink/audiobookcovers-embedding-indexer:latest
restart: unless-stopped
networks:
- apinet
environment:
DATABASE: ${DATABASE}
CLIP_API_URL: http://clip:8080


reddit-indexer:
image: weldawadyathink/audiobookcovers-reddit-scraper:latest
restart: unless-stopped
Expand All @@ -28,3 +38,5 @@ services:

networks:
supportnet:
apinet:
external: true
12 changes: 7 additions & 5 deletions services/embedding-indexer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ FULL_TAG := ${NAMESPACE}/${IMAGE_NAME}:${IMAGE_TAG}

SOURCE_FILES := $(wildcard ./src/*) package.json package-lock.json tsconfig.json

.PHONY: deploy
.PHONY: deploy fresh

deploy: last_update

last_update: Dockerfile Makefile $(SOURCE_FILES)
@set -e; \
docker buildx build --platform linux/amd64 -t $(FULL_TAG) . --push; \
docker push $(FULL_TAG); \
touch last_update
@docker buildx build --platform linux/amd64 -t $(FULL_TAG) . --push
@touch last_update

fresh: Dockerfile Makefile $(SOURCE_FILES)
@docker buildx build --no-cache --platform linux/amd64 -t $(FULL_TAG) . --push
@touch last_update

0 comments on commit a18377d

Please sign in to comment.