Docker related drafts

This commit is contained in:
zorn
2024-12-27 17:35:52 +10:00
parent ad5c0e699d
commit 9348942b7c
8 changed files with 62 additions and 17 deletions

View File

@@ -61,7 +61,7 @@ INSTALLED_APPS = [
'health_check.db',
'health_check.cache',
'app_settings',
]
MIDDLEWARE = [
@@ -101,11 +101,11 @@ GEOIP_PATH = os.path.join(BASE_DIR, 'geoip')
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': os.getenv('DB_NAME'), # Имя базы данных
'USER': os.getenv('DB_ROOT_USER'), # Имя пользователя базы данных
'PASSWORD': os.getenv('DB_PASSWORD'), # Пароль пользователя
'HOST': os.getenv('DB_HOST', default='0.0.0.0'), # Хост (по умолчанию localhost)
'PORT': os.getenv('DB_PORT', default=3308), # Порт (по умолчанию 3306)
'NAME': os.getenv('DB_NAME', default='touchh'), # Имя базы данных
'USER': os.getenv('DB_ROOT_USER', default='touchh'), # Имя пользователя базы данных
'PASSWORD': os.getenv('DB_PASSWORD', default='touchh'), # Пароль пользователя
'HOST': os.getenv('DB_HOST', default='db'), # Хост (по умолчанию localhost)
'PORT': os.getenv('DB_PORT', default=3306), # Порт (по умолчанию 3306)
'ATOMIC_REQUESTS': True,
},
@@ -214,7 +214,7 @@ JAZZMIN_SETTINGS = {
{"model": "hotels.userhotel", "label": "Пользователи отеля", "css_classes": "ml-6"},
],
},
],
"icons": {
# Приложения
@@ -238,7 +238,7 @@ JAZZMIN_SETTINGS = {
"antifraud.violationlog": "fas fa-ban", # Журнал нарушений
"hotels.importedhotel": "fas fa-download", # Импортированные отели
"hotels.synclog": "fas fa-sync-alt", # Журнал синхронизации
"auth": "fas fa-users-cog",
"users": "fas fa-user-circle",
"hotels": "fas fa-hotel",
@@ -253,7 +253,7 @@ JAZZMIN_SETTINGS = {
"app_settings.globalhotelsettings":"fas fa-hammer",
"app_settings.globalsystemsettings":"fas fa-cogs",
"scheduler": "fas fa-clock",
"pms_integration": "fas fa-sync",
"pms_integration": "fas fa-sync",
"antifroud": "fas fa-shield-alt",
"antifroud.externaldbsettings": "fas fa-database",
"antifroud.roomdiscrepancy": "fas fa-user-secret",
@@ -262,9 +262,9 @@ JAZZMIN_SETTINGS = {
"antifroud.synclog": "fas fa-sync-alt",
"antifroud.useractivitylog": "fas fa-qrcode",
},
"theme": "sandstone",
"dark_mode_theme": "darkly",
"footer": {
@@ -275,12 +275,11 @@ JAZZMIN_SETTINGS = {
{"name": "Google", "url": "https://touchh.com", "new_window": True},
{"name": "Smartsoltech", "url": "https://smartsoltech.kr", "new_window": True}
],
"show_ui_builder": False,
"show_ui_builder_breadcrumbs": False,
"show_ui_builder_tabs": False,
"show_ui_builder_tabs_breadcrumbs": False,
}
}