diff --git a/.env.example b/.env.example index 531f4f7..ff140e2 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,9 @@ OPENAI_API_KEY=sk-proj-your-openai-api-key-here OPENAI_MODEL=gpt-4o-mini # OPENAI_MODEL=gpt-4o +# Anthropic Configuration +ANTHROPIC_API_KEY=sk-ant-your-anthropic-api-key-here + # Security HTTPS_ONLY=False SECRET_KEY=your-secret-key-here @@ -36,5 +39,21 @@ REDDIT_CLIENT_ID=your-reddit-client-id REDDIT_CLIENT_SECRET=your-reddit-client-secret REDDIT_SUBREDDIT=python,kubernetes,devops,rust,selfhosted,algorithms,typescript,programming,webdev,strategy,DigitalMarketing,Entrepreneur -# Celery Configuration (optional) -# CELERY_PORT=5052 +# Celery Configuration +CELERY_PORT=5052 +FLOWER_USERNAME=admin +FLOWER_PASSWORD=your-flower-password-here + +# Server Configuration +PORT=5051 +INTERNAL_PORT=5051 +WORKERS=4 +TIMEOUT=120 + +# Docker Configuration (for compose.yaml) +IMAGE_TAG=main-latest +MEMORY_LIMIT=1024mb +MEMORY_RESERVATION=512mb +CELERY_MEMORY_LIMIT=512mb +CELERY_MEMORY_RESERVATION=256mb +DOCKER_HOST_IP=192.168.99.85 diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e6cf43c..ee8c53c 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -19,7 +19,7 @@ jobs: steps: - name: Get current date id: date - run: echo "::set-output name=date::$(date +'%Y-%m-%d')" + run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT - name: Extract branch name shell: bash run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT diff --git a/Dockerfile b/Dockerfile index fe2fb72..086972b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN echo ${GIT_BRANCH} RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts ENV WORKDIR="/opt/pygentic_ai" -RUN --mount=type=ssh git clone -b ${GIT_BRANCH} git@github.com:fsecada01/Pygentic-AI.git ${WORKDIR} +RUN --mount=type=ssh git clone -b ${GIT_BRANCH} git@github.com:FJS-Services-Inc/Pygentic-AI.git ${WORKDIR} #COPY . ${WORKDIR} WORKDIR ${WORKDIR}