Skip to content

Commit

Permalink
fix: add container names, update zep and fix ports
Browse files Browse the repository at this point in the history
  • Loading branch information
luandro committed Oct 31, 2024
1 parent 186b8db commit 884e008
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 20 deletions.
4 changes: 0 additions & 4 deletions deploy/langtrace-stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ services:
langtrace-app:
container_name: langtrace
image: scale3labs/langtrace-client:latest
build:
context: .
dockerfile: Dockerfile
target: development
working_dir: /app
env_file:
- .env
Expand Down
6 changes: 6 additions & 0 deletions deploy/trigger-stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ networks:
services:
webapp:
image: ghcr.io/triggerdotdev/trigger.dev:${TRIGGER_IMAGE_TAG:-v3}
container_name: trigger-webapp
restart: ${RESTART_POLICY:-unless-stopped}
env_file:
- .env
Expand All @@ -35,6 +36,7 @@ services:

postgres:
image: postgres:${POSTGRES_IMAGE_TAG:-16}
container_name: trigger-postgres
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- postgres-data:/var/lib/postgresql/data/
Expand All @@ -50,6 +52,7 @@ services:

redis:
image: redis:${REDIS_IMAGE_TAG:-7}
container_name: trigger-redis
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- redis-data:/data
Expand All @@ -60,6 +63,7 @@ services:

docker-provider:
image: ghcr.io/triggerdotdev/provider/docker:${TRIGGER_IMAGE_TAG:-v3}
container_name: trigger-docker-provider
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand All @@ -78,6 +82,7 @@ services:

coordinator:
image: ghcr.io/triggerdotdev/coordinator:${TRIGGER_IMAGE_TAG:-v3}
container_name: trigger-coordinator
restart: ${RESTART_POLICY:-unless-stopped}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Expand All @@ -96,6 +101,7 @@ services:

electric:
image: electricsql/electric:${ELECTRIC_IMAGE_TAG:-latest}
container_name: trigger-electric
restart: ${RESTART_POLICY:-unless-stopped}
environment:
DATABASE_URL: ${DATABASE_URL}?sslmode=disable
Expand Down
1 change: 0 additions & 1 deletion deploy/zep-stack/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ OPENAI_API_KEY=your_openai_api_key
# Database configuration
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_PORT=5432

# Neo4j configuration
NEO4J_USER=neo4j
Expand Down
20 changes: 5 additions & 15 deletions deploy/zep-stack/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,26 @@ name: zep-ce
services:
zep:
image: zepai/zep:latest
container_name: zep-ce
ports:
- ${PORT}:8000
volumes:
- ./zep.yaml:/app/zep.yaml
environment:
- ZEP_CONFIG_FILE=zep.yaml
networks:
- eda-network
depends_on:
graphiti:
condition: service_healthy
db:
condition: service_healthy
db:
image: ankane/pgvector:v0.5.1
image: pgvector/pgvector:pg17
container_name: zep-ce-postgres
restart: on-failure
shm_size: "128mb" # Increase this if vacuuming fails with a "no space left on device" error
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- eda-network
healthcheck:
test: ["CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres"]
interval: 5s
Expand All @@ -34,15 +31,14 @@ services:
volumes:
- zep-db:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT}:5432"
- "5434:5432"
graphiti:
image: zepai/graphiti:0.3
container_name: zep-ce-graphiti
ports:
- "8003:8003"
env_file:
- .env
networks:
- eda-network
healthcheck:
test:
[
Expand All @@ -66,8 +62,7 @@ services:
- PORT=8003
neo4j:
image: neo4j:5.22.0
networks:
- eda-network
container_name: zep-ce-neo4j
healthcheck:
test: wget http://localhost:7687 || exit 1
interval: 1s
Expand All @@ -84,8 +79,3 @@ services:
volumes:
neo4j_data:
zep-db:

networks:
eda-network:
name: eda-network
external: true
43 changes: 43 additions & 0 deletions deploy/zep-stack/zep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
log:
# debug, info, warn, error, panic, dpanic, or fatal. Default = info
level: info
# How should logs be formatted? Setting to "console" will print human readable logs
# whie "json" will print structured JSON logs. Default is "json".
format: json
http:
# Host to bind to. Default is 0.0.0.0
host: 0.0.0.0
# Port to bind to. Default is 8000
port: 8000
max_request_size: 5242880
postgres:
user: postgres
password: postgres
host: db
port: 5432
database: postgres
schema_name: public
read_timeout: 30
write_timeout: 30
max_open_connections: 10
# Carbon is a package used for dealing with time - github.com/golang-module/carbon
# It is primarily used for generating humand readable relative time strings like "2 hours ago".
# See the list of supported languages here https://github.com/golang-module/carbon?tab=readme-ov-file#i18n
carbon:
locale: en
graphiti:
# Base url to the graphiti service
service_url: http://graphiti:8003
# In order to authenicate API requests to the Zep service, a secret must be provided.
# This secret should be kept secret between the Zep service and the client. It can be any string value.
# When making requests to the Zep service, include the secret in the Authorization header.
api_secret: abc123
# In order to better understand how Zep is used, we can collect telemetry data.
# This is optional and can be disabled by setting disabled to true.
# We do not collect any PII or any of your data. We only collect anonymized data
# about how Zep is used.
telemetry:
disabled: false
# Please provide an identifying name for your organization so can get a better understanding
# about who is using Zep. This is optional.
organization_name: Awana Digital

0 comments on commit 884e008

Please sign in to comment.