Compare commits
2 Commits
2ca3ee7bd1
...
645e6b3665
| Author | SHA1 | Date | |
|---|---|---|---|
| 645e6b3665 | |||
| 22ecb9a611 |
@ -72,24 +72,24 @@ TEMPLATES = [
|
|||||||
WSGI_APPLICATION = 'booking_system.wsgi.application'
|
WSGI_APPLICATION = 'booking_system.wsgi.application'
|
||||||
|
|
||||||
|
|
||||||
# DATABASES = {
|
|
||||||
# 'default': {
|
|
||||||
# 'ENGINE': 'django.db.backends.sqlite3',
|
|
||||||
# 'NAME': BASE_DIR / 'db.sqlite3',
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
'ENGINE': 'django.db.backends.postgresql',
|
'ENGINE': 'django.db.backends.sqlite3',
|
||||||
'NAME': os.getenv('POSTGRES_DB'),
|
'NAME': BASE_DIR / 'db.sqlite3',
|
||||||
'USER': os.getenv('POSTGRES_USER'),
|
|
||||||
'PASSWORD': os.getenv('POSTGRES_PASSWORD'),
|
|
||||||
'HOST': os.getenv('POSTGRES_HOST', 'postgres'),
|
|
||||||
'PORT': os.getenv('POSTGRES_PORT', 5432),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# DATABASES = {
|
||||||
|
# 'default': {
|
||||||
|
# 'ENGINE': 'django.db.backends.postgresql',
|
||||||
|
# 'NAME': os.getenv('POSTGRES_DB'),
|
||||||
|
# 'USER': os.getenv('POSTGRES_USER'),
|
||||||
|
# 'PASSWORD': os.getenv('POSTGRES_PASSWORD'),
|
||||||
|
# 'HOST': os.getenv('POSTGRES_HOST', 'postgres'),
|
||||||
|
# 'PORT': os.getenv('POSTGRES_PORT', 5432),
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
ENCRYPTION_KEY = os.getenv('ENCRYPTION_KEY')
|
ENCRYPTION_KEY = os.getenv('ENCRYPTION_KEY')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ COPY . .
|
|||||||
RUN python manage.py collectstatic --noinput
|
RUN python manage.py collectstatic --noinput
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 8000
|
EXPOSE 8080
|
||||||
|
|
||||||
# Run migrations and start Gunicorn
|
# Run migrations and start Gunicorn
|
||||||
CMD sh -c "python manage.py migrate && gunicorn booking_system.wsgi:application --bind 0.0.0.0:8000 --workers 3"
|
CMD sh -c "python manage.py migrate && gunicorn booking_system.wsgi:application --bind 0.0.0.0:8080 --workers 3"
|
||||||
Loading…
Reference in New Issue
Block a user