support bulk upload when running from docker compose
This commit is contained in:
parent
f7405f18ed
commit
d18d542376
|
@ -1,4 +1,5 @@
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
|
|
||||||
|
@ -52,7 +53,10 @@ class Command(BaseCommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
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
|
auth_key = settings.CONFIG.general.api_key
|
||||||
|
|
||||||
delete_after_upload = options.get("delete_after_upload", False)
|
delete_after_upload = options.get("delete_after_upload", False)
|
||||||
|
|
|
@ -86,6 +86,8 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ${LIBRETIME_CONFIG_FILEPATH:-./config.yml}:/etc/libretime/config.yml:ro
|
- ${LIBRETIME_CONFIG_FILEPATH:-./config.yml}:/etc/libretime/config.yml:ro
|
||||||
- libretime_storage:/srv/libretime
|
- libretime_storage:/srv/libretime
|
||||||
|
environment:
|
||||||
|
LIBRETIME_GENERAL_PUBLIC_URL: http://nginx:8080
|
||||||
|
|
||||||
legacy:
|
legacy:
|
||||||
image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-latest}
|
image: ghcr.io/libretime/libretime-legacy:${LIBRETIME_VERSION:-latest}
|
||||||
|
|
Loading…
Reference in New Issue