fix: Clean up and simplify docker entrypoint (#1235) (#1259)

Co-authored-by: Ethan Knox <norton120@gmail.com>
This commit is contained in:
Sarah Wooders
2024-04-18 22:39:11 -07:00
committed by GitHub
parent d7d1bd1516
commit f3b5f5e7db
28 changed files with 1077 additions and 1029 deletions

28
development.compose.yml Normal file
View File

@@ -0,0 +1,28 @@
services:
memgpt_server:
image: memgpt_server
hostname: memgpt-server
build:
context: .
dockerfile: Dockerfile
target: development
args:
- MEMGPT_ENVIRONMENT=DEVELOPMENT
depends_on:
- memgpt_db
env_file:
- .env
environment:
- MEMGPT_SERVER_PASS=test_server_token
volumes:
- ./memgpt:/memgpt
- ~/.memgpt/credentials:/root/.memgpt/credentials
- ./configs/server_config.yaml:/root/.memgpt/config
- ./CONTRIBUTING.md:/CONTRIBUTING.md
- ./tests/pytest_cache:/memgpt/.pytest_cache
- ./tests/pytest.ini:/memgpt/pytest.ini
- ./pyproject.toml:/pyproject.toml
- ./tests:/tests
ports:
- "8083:8083"
- "8283:8283"