diff --git a/deploy/langtrace-stack/docker-compose.yml b/deploy/langtrace-stack/docker-compose.yml index 701c09c..f32a30b 100644 --- a/deploy/langtrace-stack/docker-compose.yml +++ b/deploy/langtrace-stack/docker-compose.yml @@ -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 diff --git a/deploy/trigger-stack/docker-compose.yml b/deploy/trigger-stack/docker-compose.yml index e53ba90..ae0fb4f 100644 --- a/deploy/trigger-stack/docker-compose.yml +++ b/deploy/trigger-stack/docker-compose.yml @@ -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 @@ -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/ @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/deploy/zep-stack/.env.example b/deploy/zep-stack/.env.example index 3e1fc9a..8a0a009 100644 --- a/deploy/zep-stack/.env.example +++ b/deploy/zep-stack/.env.example @@ -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 diff --git a/deploy/zep-stack/docker-compose.yml b/deploy/zep-stack/docker-compose.yml index fcdf141..7dfcb89 100644 --- a/deploy/zep-stack/docker-compose.yml +++ b/deploy/zep-stack/docker-compose.yml @@ -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 @@ -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: [ @@ -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 @@ -84,8 +79,3 @@ services: volumes: neo4j_data: zep-db: - -networks: - eda-network: - name: eda-network - external: true diff --git a/deploy/zep-stack/zep.yaml b/deploy/zep-stack/zep.yaml new file mode 100644 index 0000000..3e0ac4b --- /dev/null +++ b/deploy/zep-stack/zep.yaml @@ -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