-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Lock Down Docker Compose DB and NLP Ports (#249)
* lock down docker compose db and nlp ports; dev docker compose * remove log
- Loading branch information
1 parent
53c4822
commit babce2a
Showing
4 changed files
with
136 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
version: "3.7" | ||
services: | ||
db: | ||
image: ghcr.io/getzep/postgres:latest | ||
container_name: zep-postgres | ||
restart: on-failure | ||
shm_size: "128mb" # Increase this if vacuuming fails with a "no space left on device" error | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=postgres | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.postgres | ||
networks: | ||
- zep-network | ||
healthcheck: | ||
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "postgres" ] | ||
interval: 5s | ||
timeout: 5s | ||
retries: 5 | ||
ports: | ||
- "5432:5432" | ||
nlp: | ||
image: ghcr.io/getzep/zep-nlp-server:latest | ||
container_name: zep-nlp | ||
env_file: | ||
- .env # You can set your embedding-related variables here | ||
restart: on-failure | ||
networks: | ||
- zep-network | ||
healthcheck: | ||
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/5557' || exit 1 | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
start_period: 30s | ||
ports: | ||
- "5557:5557" | ||
zep: | ||
image: ghcr.io/getzep/zep:latest | ||
container_name: zep | ||
restart: on-failure | ||
depends_on: | ||
db: | ||
condition: service_healthy | ||
nlp: | ||
condition: service_healthy | ||
ports: | ||
- "8000:8000" | ||
volumes: | ||
- ./config.yaml:/app/config.yaml | ||
environment: | ||
- ZEP_STORE_POSTGRES_DSN=postgres://postgres:postgres@db:5432/postgres?sslmode=disable | ||
- ZEP_NLP_SERVER_URL=http://nlp:5557 | ||
- ZEP_EXTRACTORS_DOCUMENTS_EMBEDDINGS_SERVICE=openai | ||
- ZEP_EXTRACTORS_DOCUMENTS_EMBEDDINGS_DIMENSIONS=1536 | ||
- ZEP_EXTRACTORS_MESSAGES_EMBEDDINGS_SERVICE=openai | ||
- ZEP_EXTRACTORS_MESSAGES_EMBEDDINGS_DIMENSIONS=1536 | ||
env_file: | ||
- .env # Store your OpenAI API key here as ZEP_OPENAI_API_KEY | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
healthcheck: | ||
test: timeout 10s bash -c ':> /dev/tcp/127.0.0.1/8000' || exit 1 | ||
interval: 5s | ||
timeout: 10s | ||
retries: 3 | ||
start_period: 10s | ||
networks: | ||
- zep-network | ||
networks: | ||
zep-network: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters