Skip to content

Commit

Permalink
fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Jan 16, 2025
1 parent fca1917 commit 6161b00
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 44 deletions.
2 changes: 1 addition & 1 deletion chat-with-context/demo/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ export default defineConfig({
port: 3000,
},
build: {
outDir: "../../src/sparql_llm/webapp",
outDir: "../../packages/expasy-agent/src/expasy_agent/webapp",
},
});
86 changes: 43 additions & 43 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,51 +33,51 @@ services:
env_file:
- .env

langgraph-redis:
image: redis:6
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 1s
retries: 5
# langgraph-redis:
# image: redis:6
# restart: unless-stopped
# healthcheck:
# test: redis-cli ping
# interval: 10s
# timeout: 1s
# retries: 5

langgraph-postgres:
image: postgres:16
restart: unless-stopped
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./data/langgraph-postgres:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U postgres
start_period: 10s
timeout: 1s
retries: 5
interval: 10s
# langgraph-postgres:
# image: postgres:16
# restart: unless-stopped
# environment:
# POSTGRES_DB: postgres
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: postgres
# volumes:
# - ./data/langgraph-postgres:/var/lib/postgresql/data
# healthcheck:
# test: pg_isready -U postgres
# start_period: 10s
# timeout: 1s
# retries: 5
# interval: 10s

langgraph-api:
# image: ${IMAGE_NAME}
# NOTE: build the image locally first
image: langgraph-expasy-agent
# ports:
# - "8123:8000"
depends_on:
langgraph-redis:
condition: service_healthy
langgraph-postgres:
condition: service_healthy
vectordb:
condition: service_healthy
restart: unless-stopped
env_file:
- .env
environment:
REDIS_URI: redis://langgraph-redis:6379
LANGCHAIN_TRACING_V2: false
POSTGRES_URI: postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable
# langgraph-api:
# # image: ${IMAGE_NAME}
# # NOTE: build the image locally first
# image: langgraph-expasy-agent
# # ports:
# # - "8123:8000"
# depends_on:
# langgraph-redis:
# condition: service_healthy
# langgraph-postgres:
# condition: service_healthy
# vectordb:
# condition: service_healthy
# restart: unless-stopped
# env_file:
# - .env
# environment:
# REDIS_URI: redis://langgraph-redis:6379
# LANGCHAIN_TRACING_V2: false
# POSTGRES_URI: postgres://postgres:postgres@langgraph-postgres:5432/postgres?sslmode=disable


# TODO: add ollama
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ssh_cmd() {

if [ "$1" = "build" ]; then
echo "📦️ Re-building"
scp ./packages/expasy-agent/src/expasy_agent/webapp expasychat:/var/containers/podman/sparql-llm/packages/expasy-agent/src/expasy_agent/webapp
ssh_cmd "git pull ; podman-compose up --force-recreate --build -d"

elif [ "$1" = "clean" ]; then
Expand Down

0 comments on commit 6161b00

Please sign in to comment.