WORKSTATION > SRBT-EMEA-DCUX-4G01
docker exec -it postgres-db psql -U postgresCREATE DATABASE taiga;
CREATE USER taiga WITH PASSWORD 'strong_taiga_password';
ALTER DATABASE taiga OWNER TO taiga;
GRANT ALL PRIVILEGES ON DATABASE taiga TO taiga;\q
docker logs -f taiga-back
docker logs -f taiga-front
import os
¶ --------------------------
¶ Database configuration
¶ --------------------------
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'taiga', # Must match taiga-postgres DB name
'USER': 'taiga', # Must match taiga-postgres user
'PASSWORD': 'notrace25!', # Must match taiga-postgres password
'HOST': 'taiga-postgres', # Docker service name
'PORT': '5432',
}
}
¶ --------------------------
¶ Secret key (change to a long random string in production!)
¶ --------------------------
SECRET_KEY = os.environ.get('TAIGA_SECRET_KEY', 'CHANGE_ME_TO_A_LONG_RANDOM_STRING')
¶ --------------------------
¶ Debug mode
¶ --------------------------
DEBUG = False
¶ --------------------------
¶ Public registration
¶ --------------------------
PUBLIC_REGISTER_ENABLED = True
PUBLIC_REGISTER_REQUIRE_EMAIL_VERIFICATION = False
¶ --------------------------
¶ Site configuration
¶ --------------------------
SITES = {
"default": {
"scheme": "https",
"domain": "taiga.betrade.pt",
"name": "Taiga",
}
}
¶ --------------------------
¶ Redis configuration
¶ --------------------------
REDIS_HOST = os.environ.get('TAIGA_REDIS_HOST', 'redis')
REDIS_PORT = os.environ.get('TAIGA_REDIS_PORT', 6379)
¶ --------------------------
¶ Email configuration (optional, can be customized later)
¶ --------------------------
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'