Docker deployment Realised

This commit is contained in:
Josako
2024-06-26 12:02:14 +02:00
parent 348bdf2c15
commit 7a1b51dd0c
2494 changed files with 7329 additions and 172135 deletions

View File

@@ -156,8 +156,8 @@ class DevConfig(Config):
DEBUG = True
FLASK_DEBUG = True
PYCHARM_DEBUG = False
SQLALCHEMY_DATABASE_URI = 'postgresql+pg8000://josako@localhost:5432/eveAI'
SQLALCHEMY_BINDS = {'public': 'postgresql+pg8000://josako@localhost:5432/eveAI'}
SQLALCHEMY_DATABASE_URI = 'postgresql+pg8000://luke:Skywalker!@db:5432/eveai'
SQLALCHEMY_BINDS = {'public': 'postgresql+pg8000://luke:Skywalker!@db:5432/eveai'}
EXPLAIN_TEMPLATE_LOADING = False
# Define the nginx prefix used for the specific apps
@@ -173,11 +173,11 @@ class DevConfig(Config):
# Celery settings
# eveai_app Redis Settings
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
CELERY_BROKER_URL = 'redis://redis:6379/0'
CELERY_RESULT_BACKEND = 'redis://redis:6379/0'
# eveai_chat Redis Settings
CELERY_BROKER_URL_CHAT = 'redis://localhost:6379/3'
CELERY_RESULT_BACKEND_CHAT = 'redis://localhost:6379/3'
CELERY_BROKER_URL_CHAT = 'redis://redis:6379/3'
CELERY_RESULT_BACKEND_CHAT = 'redis://redis:6379/3'
# OpenAI API Keys
OPENAI_API_KEY = 'sk-proj-8R0jWzwjL7PeoPyMhJTZT3BlbkFJLb6HfRB2Hr9cEVFWEhU7'
@@ -188,7 +188,7 @@ class DevConfig(Config):
UNSTRUCTURED_FULL_URL = 'https://flowitbv-16c4us0m.api.unstructuredapp.io/general/v0/general'
# SocketIO settings
SOCKETIO_MESSAGE_QUEUE = 'redis://localhost:6379/1'
SOCKETIO_MESSAGE_QUEUE = 'redis://redis:6379/1'
SOCKETIO_CORS_ALLOWED_ORIGINS = '*'
SOCKETIO_LOGGER = True
SOCKETIO_ENGINEIO_LOGGER = True
@@ -203,7 +203,7 @@ class DevConfig(Config):
JWT_SECRET_KEY = 'bsdMkmQ8ObfMD52yAFg4trrvjgjMhuIqg2fjDpD/JqvgY0ccCcmlsEnVFmR79WPiLKEA3i8a5zmejwLZKl4v9Q=='
# Session settings
SESSION_REDIS = redis.from_url('redis://localhost:6379/2')
SESSION_REDIS = redis.from_url('redis://redis:6379/2')
class ProdConfig(Config):