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}