support bulk upload when running from docker compose

This commit is contained in:
Keoni Mahelona 2024-02-07 08:53:25 -10:00
parent f7405f18ed
commit d18d542376
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import logging
import os
from pathlib import Path
from typing import List, Optional
@ -52,7 +53,10 @@ class Command(BaseCommand):
)
def handle(self, *args, **options):
url = settings.CONFIG.general.public_url
url = os.environ.get(
'LIBRETIME_GENERAL_PUBLIC_URL',
settings.CONFIG.general.public_url
)
auth_key = settings.CONFIG.general.api_key
delete_after_upload = options.get("delete_after_upload", False)

View File

@ -86,6 +86,8 @@ services:
volumes:
- ${LIBRETIME_CONFIG_FILEPATH:-./config.yml}:/etc/libretime/config.yml:ro
- libretime_storage:/srv/libretime
environment:
LIBRETIME_GENERAL_PUBLIC_URL: http://nginx:8080
legacy:
image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-latest}