The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
Deploy Full stack docker image (#914)
Sidharth Mohanty936c7e389fa2
diff --git a/docs/examples/full_stack.mdx b/docs/examples/full_stack.mdxindex f55b85b7a..e4158ad28 100644--- a/docs/examples/full_stack.mdx+++ b/docs/examples/full_stack.mdx@@ -8,14 +8,45 @@ This guide will help you setup the full stack app on your local machine.### π³ Docker Setup-- To setup full stack app using docker, run the following command inside this folder using your terminal.+- Create a `docker-compose.yml` file and paste the following code in it.++```yaml+version: "3.9"++services:+ backend:+ container_name: embedchain-backend+ restart: unless-stopped+ build:+ context: backend+ dockerfile: Dockerfile+ image: embedchain/backend+ ports:+ - "8000:8000"++ frontend:+ container_name: embedchain-frontend+ restart: unless-stopped+ build:+ context: frontend+ dockerfile: Dockerfile+ image: embedchain/frontend+ ports:+ - "3000:3000"+ depends_on:+ - "backend"+```++- Run the following command,```bash-docker-compose up --build+docker-compose up```π Note: The build command might take a while to install all the packages depending on your system resources.++### π Usage Instructions- Go to [http://localhost:3000/](http://localhost:3000/) in your browser to view the dashboard.diff --git a/examples/full_stack/backend/Dockerfile b/examples/full_stack/backend/Dockerfileindex 404d5f479..4836cb61a 100644--- a/examples/full_stack/backend/Dockerfile+++ b/examples/full_stack/backend/Dockerfile@@ -1,4 +1,4 @@-FROM python:3.11 AS backend+FROM python:3.11-slim AS backendWORKDIR /usr/src/app/backendCOPY requirements.txt .diff --git a/examples/full_stack/docker-compose.yml b/examples/full_stack/docker-compose.ymlindex 3af21d33c..29cdf6aa6 100644--- a/examples/full_stack/docker-compose.yml+++ b/examples/full_stack/docker-compose.yml@@ -2,20 +2,22 @@ version: "3.9"services:backend:- container_name: embedchain_backend+ container_name: embedchain-backendrestart: unless-stoppedbuild:context: backenddockerfile: Dockerfile+ image: embedchain/backendports:- "8000:8000"frontend:- container_name: embedchain_frontend+ container_name: embedchain-frontendrestart: unless-stoppedbuild:context: frontenddockerfile: Dockerfile+ image: embedchain/frontendports:- "3000:3000"depends_on:diff --git a/examples/full_stack/frontend/Dockerfile b/examples/full_stack/frontend/Dockerfileindex e1281fe19..0a26ac385 100644--- a/examples/full_stack/frontend/Dockerfile+++ b/examples/full_stack/frontend/Dockerfile@@ -1,4 +1,4 @@-FROM node:18 AS frontend+FROM node:18-slim AS frontendWORKDIR /usr/src/app/frontendCOPY package.json .