diff --git a/tubesync/tubesync/local_settings.py.container b/tubesync/tubesync/local_settings.py.container
index a7a07ab..9207c7f 100644
--- a/tubesync/tubesync/local_settings.py.container
+++ b/tubesync/tubesync/local_settings.py.container
@@ -6,9 +6,8 @@ from common.utils import parse_database_connection_string
 
 
 BASE_DIR = Path(__file__).resolve().parent.parent
-ROOT_DIR = Path('/')
-CONFIG_BASE_DIR = ROOT_DIR / 'config'
-DOWNLOADS_BASE_DIR = ROOT_DIR / 'downloads'
+CONFIG_BASE_DIR = Path(os.getenv('CONFIG_BASE_DIR', "/var/lib/tubesync"))
+DOWNLOADS_BASE_DIR = Path(os.getenv('DOWNLOADS_BASE_DIR', f"{CONFIG_BASE_DIR}/downloads"))
 DJANGO_URL_PREFIX = os.getenv('DJANGO_URL_PREFIX', None)
 STATIC_URL = str(os.getenv('DJANGO_STATIC_URL', '/static/'))
 if DJANGO_URL_PREFIX and STATIC_URL:
