From 29706c155e1578778623541717b38572a3973f71 Mon Sep 17 00:00:00 2001 From: Meng Sen Date: Wed, 23 Jul 2025 16:33:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=BA=94=E7=94=A8=20ArchiveB?= =?UTF-8?q?ox?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Meng Sen --- archivebox/0.8.5rc51/docker-compose.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/archivebox/0.8.5rc51/docker-compose.yml b/archivebox/0.8.5rc51/docker-compose.yml index ffff7a7e4..e547e2dbb 100644 --- a/archivebox/0.8.5rc51/docker-compose.yml +++ b/archivebox/0.8.5rc51/docker-compose.yml @@ -5,6 +5,8 @@ networks: services: archivebox: image: archivebox/archivebox:0.8.5rc51 + depends_on: + - archivebox-init container_name: ${CONTAINER_NAME} labels: createdBy: "Apps" @@ -26,6 +28,27 @@ services: - SEARCH_BACKEND_HOST_NAME=archivebox-sonic - SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-} + archivebox-init: + image: archivebox/archivebox:0.8.5rc51 + container_name: init-${CONTAINER_NAME} + labels: + createdBy: "Apps" + networks: + - 1panel-network + command: archivebox init + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${ARCHIVEBOX_ROOT_PATH}/data:/data + environment: + - TZ=Asia/Shanghai + - ALLOWED_HOSTS=* + - CSRF_TRUSTED_ORIGINS=http://localhost:8000 + - SEARCH_BACKEND_ENGINE=sonic + - SEARCH_BACKEND_HOST_NAME=archivebox-sonic + - SEARCH_BACKEND_PASSWORD=${ADMIN_PASSWORD:-} + archivebox-sonic: image: archivebox/sonic:latest container_name: sonic-${CONTAINER_NAME}