Skip to content

Commit

Permalink
persist workspace if local
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT committed Jan 8, 2025
1 parent 8c3f379 commit de98084
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 47 deletions.
1 change: 1 addition & 0 deletions agixt/Globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def getenv(var_name: str, default_value: str = "") -> str:
"CREATE_AGENT_ON_REGISTER": "true",
"CREATE_AGIXT_AGENT": "true",
"SEED_DATA": "true",
"GRAPHIQL": "true",
}
if default_value != "":
default_values[var_name] = default_value
Expand Down
6 changes: 3 additions & 3 deletions agixt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ async def file_iterator():


from strawberry.fastapi import GraphQLRouter
from endpoints.GQL import schema as graphql_schema
from endpoints.GQL import schema

graphql_app = GraphQLRouter(
graphql_schema,
schema=schema,
subscription_protocols=["graphql-ws", "graphql-transport-ws"],
graphiql=True, # Set to False in production if you don't want the GraphiQL interface
graphiql=str(getenv("GRAPHIQL")).lower() == "true",
)
app.include_router(graphql_app, prefix="/graphql")
12 changes: 1 addition & 11 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
services:
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: ${AGIXT_API_KEY:-None}
command: server --console-address ":9001" /data
volumes:
- ./WORKSPACE:/data
agixt:
image: joshxt/agixt:main
init: true
Expand Down Expand Up @@ -53,6 +42,7 @@ services:
- "${AGIXT_PORT:-7437}:7437"
volumes:
- ./models:/agixt/models
- ./WORKSPACE:/agixt/WORKSPACE
- ./agixt/agents:/agixt/agents
- ./agixt/prompts:/agixt/prompts
- ./agixt/chains:/agixt/chains
Expand Down
12 changes: 1 addition & 11 deletions docker-compose-nostreamlit-dev.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
services:
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: ${AGIXT_API_KEY:-None}
command: server --console-address ":9001" /data
volumes:
- ./WORKSPACE:/data
agixt:
image: joshxt/agixt:main
init: true
Expand Down Expand Up @@ -53,6 +42,7 @@ services:
- "${AGIXT_PORT:-7437}:7437"
volumes:
- ./models:/agixt/models
- ./WORKSPACE:/agixt/WORKSPACE
- ./agixt/agents:/agixt/agents
- ./agixt/prompts:/agixt/prompts
- ./agixt/chains:/agixt/chains
Expand Down
12 changes: 1 addition & 11 deletions docker-compose-nostreamlit.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
services:
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: ${AGIXT_API_KEY:-None}
command: server --console-address ":9001" /data
volumes:
- ./WORKSPACE:/data
agixt:
image: joshxt/agixt:latest
init: true
Expand Down Expand Up @@ -53,6 +42,7 @@ services:
- "${AGIXT_PORT:-7437}:7437"
volumes:
- ./models:/agixt/models
- ./WORKSPACE:/agixt/WORKSPACE
- ./agixt/agents:/agixt/agents
- ./agixt/prompts:/agixt/prompts
- ./agixt/chains:/agixt/chains
Expand Down
12 changes: 1 addition & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
services:
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: ${AGIXT_API_KEY:-None}
command: server --console-address ":9001" /data
volumes:
- ./WORKSPACE:/data
agixt:
image: joshxt/agixt:latest
init: true
Expand Down Expand Up @@ -53,6 +42,7 @@ services:
- "${AGIXT_PORT:-7437}:7437"
volumes:
- ./models:/agixt/models
- ./WORKSPACE:/agixt/WORKSPACE
- ./agixt/agents:/agixt/agents
- ./agixt/prompts:/agixt/prompts
- ./agixt/chains:/agixt/chains
Expand Down

0 comments on commit de98084

Please sign in to comment.