@ -97,18 +97,18 @@ DATABASES = {
|
||||
# https://docs.djangoproject.com/en/5.0/ref/settings/#auth-password-validators
|
||||
|
||||
AUTH_PASSWORD_VALIDATORS = [
|
||||
# {
|
||||
# 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||
# },
|
||||
# {
|
||||
# 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
||||
# },
|
||||
# {
|
||||
# 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
||||
# },
|
||||
# {
|
||||
# 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
||||
# },
|
||||
{
|
||||
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
|
||||
},
|
||||
{
|
||||
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
|
||||
},
|
||||
{
|
||||
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
|
||||
},
|
||||
{
|
||||
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
|
||||
},
|
||||
]
|
||||
|
||||
LOGIN_REDIRECT_URL = "home"
|
||||
|
@ -55,6 +55,8 @@ COPY ./app/. app
|
||||
|
||||
COPY --from=build /tmp/python_builds /tmp/python_builds
|
||||
|
||||
COPY includes/ /
|
||||
|
||||
RUN pip install /tmp/python_builds/*.*; \
|
||||
python /app/manage.py collectstatic --noinput; \
|
||||
rm -rf /tmp/python_builds;
|
||||
@ -65,5 +67,7 @@ WORKDIR /app
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
VOLUME [ "/data", "/etc/itsm" ]
|
||||
|
||||
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
0
includes/data/.gitkeep
Normal file
0
includes/data/.gitkeep
Normal file
9
includes/etc/itsm/settings.py
Normal file
9
includes/etc/itsm/settings.py
Normal file
@ -0,0 +1,9 @@
|
||||
# ITSM Docker Settings
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': '/data/db.sqlite3',
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user