[GH-ISSUE #1282] Bug: Environment variables passed from docker-compose.yml do not seem to get read #788

Closed
opened 2026-03-01 14:46:19 +03:00 by kerem · 1 comment
Owner

Originally created by @dstengle on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1282

Describe the bug

While attempting to get sonic to work with docker compose, the environment variables listed in the compose file do not appear to change the configuration.

Steps to reproduce

Download and run the default compose file, uncomment necessary sections and bring it up.

Sonic container runs, but searches don't have full text.

Using config set for SEARCH_BACKEND_ENGINE SEARCH_BACKEND_HOST_NAME SEARCH_BACKEND_PORT are all required to get it working.

Screenshots or log output

ArchiveBox version

$ docker compose exec -u archivebox archivebox archivebox --version
0.7.1+editable
ArchiveBox v0.7.1+editable Cpython Linux Linux-6.2.0-37-generic-x86_64-with-glibc2.36 x86_64
DEBUG=False IN_DOCKER=True IN_QEMU=False IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=True FS_USER=1000:1000 FS_PERMS=644 SEARCH_BACKEND=sonic

[i] Dependency versions:
√ PYTHON_BINARY v3.11.6 valid /usr/local/bin/python3.11
√ SQLITE_BINARY v2.6.0 valid /usr/local/lib/python3.11/sqlite3/dbapi2.py
√ DJANGO_BINARY v3.1.14 valid /usr/local/lib/python3.11/site-packages/django/init.py
√ ARCHIVEBOX_BINARY v0.7.1 valid /usr/local/bin/archivebox

√ CURL_BINARY v8.4.0 valid /usr/bin/curl
√ WGET_BINARY v1.21.3 valid /usr/bin/wget
√ NODE_BINARY v21.1.0 valid /usr/bin/node
√ SINGLEFILE_BINARY v1.1.18 valid /app/node_modules/single-file-cli/single-file
√ READABILITY_BINARY v0.0.9 valid /app/node_modules/readability-extractor/readability-extractor
√ MERCURY_BINARY v1.0.0 valid /app/node_modules/@postlight/parser/cli.js
√ GIT_BINARY v2.39.2 valid /usr/bin/git
√ YOUTUBEDL_BINARY v2023.10.13 valid /usr/local/bin/yt-dlp
√ CHROME_BINARY v119.0.6045.9 valid /usr/bin/chromium-browser
√ RIPGREP_BINARY v13.0.0 valid /usr/bin/rg

[i] Source-code locations:
√ PACKAGE_DIR 24 files valid /app/archivebox
√ TEMPLATES_DIR 4 files valid /app/archivebox/templates

  • CUSTOM_TEMPLATES_DIR - disabled None

[i] Secrets locations:

  • CHROME_USER_DATA_DIR - disabled None
  • COOKIES_FILE - disabled None

[i] Data locations:
√ OUTPUT_DIR 8 files @ valid /data
√ SOURCES_DIR 1 files valid ./sources
√ LOGS_DIR 1 files valid ./logs
√ ARCHIVE_DIR 1 files valid ./archive
√ CONFIG_FILE 196.0 Bytes valid ./ArchiveBox.conf
√ SQL_INDEX 212.0 KB valid ./index.sqlite3

Originally created by @dstengle on GitHub (Dec 6, 2023). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1282 #### Describe the bug While attempting to get sonic to work with docker compose, the environment variables listed in the compose file do not appear to change the configuration. #### Steps to reproduce Download and run the default compose file, uncomment necessary sections and bring it up. Sonic container runs, but searches don't have full text. Using config set for SEARCH_BACKEND_ENGINE SEARCH_BACKEND_HOST_NAME SEARCH_BACKEND_PORT are all required to get it working. #### Screenshots or log output #### ArchiveBox version $ docker compose exec -u archivebox archivebox archivebox --version 0.7.1+editable ArchiveBox v0.7.1+editable Cpython Linux Linux-6.2.0-37-generic-x86_64-with-glibc2.36 x86_64 DEBUG=False IN_DOCKER=True IN_QEMU=False IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=True FS_USER=1000:1000 FS_PERMS=644 SEARCH_BACKEND=sonic [i] Dependency versions: √ PYTHON_BINARY v3.11.6 valid /usr/local/bin/python3.11 √ SQLITE_BINARY v2.6.0 valid /usr/local/lib/python3.11/sqlite3/dbapi2.py √ DJANGO_BINARY v3.1.14 valid /usr/local/lib/python3.11/site-packages/django/__init__.py √ ARCHIVEBOX_BINARY v0.7.1 valid /usr/local/bin/archivebox √ CURL_BINARY v8.4.0 valid /usr/bin/curl √ WGET_BINARY v1.21.3 valid /usr/bin/wget √ NODE_BINARY v21.1.0 valid /usr/bin/node √ SINGLEFILE_BINARY v1.1.18 valid /app/node_modules/single-file-cli/single-file √ READABILITY_BINARY v0.0.9 valid /app/node_modules/readability-extractor/readability-extractor √ MERCURY_BINARY v1.0.0 valid /app/node_modules/@postlight/parser/cli.js √ GIT_BINARY v2.39.2 valid /usr/bin/git √ YOUTUBEDL_BINARY v2023.10.13 valid /usr/local/bin/yt-dlp √ CHROME_BINARY v119.0.6045.9 valid /usr/bin/chromium-browser √ RIPGREP_BINARY v13.0.0 valid /usr/bin/rg [i] Source-code locations: √ PACKAGE_DIR 24 files valid /app/archivebox √ TEMPLATES_DIR 4 files valid /app/archivebox/templates - CUSTOM_TEMPLATES_DIR - disabled None [i] Secrets locations: - CHROME_USER_DATA_DIR - disabled None - COOKIES_FILE - disabled None [i] Data locations: √ OUTPUT_DIR 8 files @ valid /data √ SOURCES_DIR 1 files valid ./sources √ LOGS_DIR 1 files valid ./logs √ ARCHIVE_DIR 1 files valid ./archive √ CONFIG_FILE 196.0 Bytes valid ./ArchiveBox.conf √ SQL_INDEX 212.0 KB valid ./index.sqlite3
kerem closed this issue 2026-03-01 14:46:19 +03:00
Author
Owner

@dstengle commented on GitHub (Dec 6, 2023):

I think this might just be user error and trying to update the index directly from the docker image rather than the compose.

<!-- gh-comment-id:1843097523 --> @dstengle commented on GitHub (Dec 6, 2023): I think this might just be user error and trying to update the index directly from the docker image rather than the compose.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#788
No description provided.