Merge branch 'release/0.0.11'

This commit is contained in:
Davidson Gomes 2025-05-16 12:15:48 -03:00
commit 21e67e43a3
5 changed files with 18 additions and 27 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.0.11] - 2025-05-16
### Changed
- Fixes on email service and client service
## [0.0.10] - 2025-05-15
### Added

View File

@ -34,4 +34,4 @@ ENV PORT=8000 \
# Expose port
EXPOSE 8000
CMD alembic upgrade head && uvicorn src.main:app --host $HOST --port $PORT
CMD alembic upgrade head && python -m scripts.run_seeders && uvicorn src.main:app --host $HOST --port $PORT

View File

@ -3,19 +3,15 @@ version: "3.8"
services:
api:
image: evo-ai-api:latest
build: .
container_name: evo-ai-api
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
- postgres
- redis
ports:
- "8000:8000"
environment:
POSTGRES_CONNECTION_STRING: postgresql://postgres:${POSTGRES_PASSWORD:-postgres}@postgres:5432/evo_ai
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PORT: ${REDIS_PORT:-6379}
REDIS_PASSWORD: ${REDIS_PASSWORD:-""}
REDIS_SSL: "false"
REDIS_KEY_PREFIX: "a2a:"
@ -29,7 +25,6 @@ services:
volumes:
- ./logs:/app/logs
- ./static:/app/static
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/"]
interval: 30s
@ -41,12 +36,9 @@ services:
limits:
cpus: "1"
memory: 1G
networks:
- evo-network
postgres:
image: postgres:14-alpine
container_name: evo-ai-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
@ -55,15 +47,12 @@ services:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
networks:
- evo-network
deploy:
resources:
limits:
@ -72,8 +61,12 @@ services:
redis:
image: redis:alpine
container_name: evo-ai-redis
command: redis-server --appendonly yes ${REDIS_PASSWORD:+--requirepass ${REDIS_PASSWORD}}
command:
- redis-server
- --appendonly
- "yes"
- --requirepass
- "${REDIS_PASSWORD}"
ports:
- "${REDIS_PORT:-6379}:6379"
volumes:
@ -83,9 +76,6 @@ services:
interval: 5s
timeout: 30s
retries: 50
restart: unless-stopped
networks:
- evo-network
deploy:
resources:
limits:
@ -97,8 +87,3 @@ volumes:
name: ${POSTGRES_VOLUME_NAME:-evo-ai-postgres-data}
redis_data:
name: ${REDIS_VOLUME_NAME:-evo-ai-redis-data}
networks:
evo-network:
name: ${NETWORK_NAME:-evo-network}
driver: bridge

View File

@ -154,7 +154,7 @@ def create_client_with_user(
# Use client ID to create the associated user
user, message = create_user(
db, user_data, is_admin=False, client_id=client.id, auto_verify=True
db, user_data, is_admin=False, client_id=client.id, auto_verify=False
)
if not user:

View File

@ -37,7 +37,7 @@ import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from pathlib import Path
from config.settings import settings
from src.config.settings import settings
logger = logging.getLogger(__name__)