updated default config

This commit is contained in:
SwiftyOS
2024-09-12 11:43:29 +02:00
parent 0d8c2a820e
commit 03b30ebf5b
4 changed files with 15 additions and 9 deletions

View File

@@ -56,5 +56,6 @@ MEDIUM_AUTHOR_ID=
# Logging Configuration
LOG_LEVEL=INFO
ENABLE_CLOUD_LOGGING=false
ENABLE_FILE_LOGGING=true
LOG_DIR=./logs
ENABLE_FILE_LOGGING=false
# Use to manually set the log directory
# LOG_DIR=./logs

View File

@@ -61,7 +61,7 @@ FROM server_dependencies AS server_prisma
COPY rnd/autogpt_server/schema.prisma ./
RUN poetry run prisma generate
FROM server_prisma AS server
FROM server_dependencies AS server
COPY rnd/autogpt_server /app/rnd/autogpt_server

View File

@@ -66,7 +66,7 @@ services:
postgres:
condition: service_healthy
migrate:
condition: service_started
condition: service_completed_successfully
environment:
- DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
- REDIS_HOST=redis
@@ -98,7 +98,7 @@ services:
postgres:
condition: service_healthy
migrate:
condition: service_started
condition: service_completed_successfully
environment:
- DATABASE_URL=postgresql://agpt_user:pass123@postgres:5432/agpt_local?connect_timeout=60
- REDIS_HOST=redis

View File

@@ -23,15 +23,20 @@ RUN pip3 install poetry
COPY rnd/autogpt_libs /app/rnd/autogpt_libs
COPY rnd/market/poetry.lock rnd/market/pyproject.toml /app/rnd/market/
WORKDIR /app/rnd/market
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi
RUN poetry install --no-interaction --no-ansi
# Generate Prisma client
COPY rnd/market /app/rnd/market
RUN poetry config virtualenvs.create false && poetry run prisma generate
RUN poetry run prisma generate
FROM python:3.11-slim-buster AS server_dependencies
ENV POETRY_VERSION=1.8.3 \
POETRY_HOME="/opt/poetry" \
POETRY_NO_INTERACTION=1 \
POETRY_VIRTUALENVS_CREATE=false \
PATH="$POETRY_HOME/bin:$PATH"
WORKDIR /app
# Copy only necessary files from builder
@@ -53,7 +58,7 @@ WORKDIR /app/rnd/market
FROM server_dependencies AS server_prisma
COPY rnd/market /app/rnd/market
RUN poetry config virtualenvs.create false && poetry run prisma generate
RUN poetry run prisma generate
FROM server_prisma AS server