Added Docker

This commit is contained in:
ayxan
2022-10-01 17:55:04 +04:00
parent ad04604b6c
commit e613fe1874
7 changed files with 46 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ from .base import *
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
DATABASES = {
'default': {
@@ -11,10 +11,12 @@ DATABASES = {
'NAME': env('DB_NAME'),
'USER': env('DB_USER'),
'PASSWORD': env('DB_PASSWORD'),
'HOST': 'databasepostgresql',
'HOST': 'db',
'PORT': '5432',
}
}
STATIC_URL = '/django_static/'
STATIC_ROOT = os.path.join(os.path.dirname(os.path.dirname(BASE_DIR)), 'opt/services/djangoapp/django_static')
STATIC_URL = '/static/'
STATICFILES_DIRS = [
BASE_DIR / 'static'
]