mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-22 22:39:36 +02:00
chore: Update Docker and Django server configuration
This commit is contained in:
parent
7bb70b8014
commit
d3516b1806
5 changed files with 7 additions and 4 deletions
2
.github/workflows/docker-image.yml
vendored
2
.github/workflows/docker-image.yml
vendored
|
@ -5,7 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'backend/**'
|
- "backend/**"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "adventurelog-backend"
|
IMAGE_NAME: "adventurelog-backend"
|
||||||
|
|
|
@ -6,3 +6,5 @@ PGPASSWORD=''
|
||||||
SECRET_KEY='pleasechangethisbecauseifyoudontitwillbeverybadandyouwillgethackedinlessthanaminuteguaranteed'
|
SECRET_KEY='pleasechangethisbecauseifyoudontitwillbeverybadandyouwillgethackedinlessthanaminuteguaranteed'
|
||||||
|
|
||||||
PUBLIC_URL='http://127.0.0.1:8000'
|
PUBLIC_URL='http://127.0.0.1:8000'
|
||||||
|
|
||||||
|
DEBUG=True
|
|
@ -25,7 +25,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
SECRET_KEY = getenv('SECRET_KEY')
|
SECRET_KEY = getenv('SECRET_KEY')
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = getenv('DEBUG', 'True') == 'True'
|
||||||
|
|
||||||
# ALLOWED_HOSTS = [
|
# ALLOWED_HOSTS = [
|
||||||
# 'localhost',
|
# 'localhost',
|
||||||
|
|
|
@ -34,6 +34,7 @@ services:
|
||||||
- DJANGO_ADMIN_PASSWORD=admin
|
- DJANGO_ADMIN_PASSWORD=admin
|
||||||
- DJANGO_ADMIN_EMAIL=admin@example.com
|
- DJANGO_ADMIN_EMAIL=admin@example.com
|
||||||
- PUBLIC_URL='http://127.0.0.1:8000'
|
- PUBLIC_URL='http://127.0.0.1:8000'
|
||||||
|
- DEBUG=False
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue