From ee8a4e7b63f436a537ed4263db08e131e3f50b15 Mon Sep 17 00:00:00 2001 From: ms Date: Thu, 4 Dec 2025 14:05:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/glean/0.1.4/docker-compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/glean/0.1.4/docker-compose.yml b/apps/glean/0.1.4/docker-compose.yml index 2e9aaa509..705095a78 100644 --- a/apps/glean/0.1.4/docker-compose.yml +++ b/apps/glean/0.1.4/docker-compose.yml @@ -8,7 +8,7 @@ services: postgres: image: postgres:16-alpine container_name: ${CONTAINER_NAME}-postgres - restart: unless-stopped + restart: always volumes: - ${GLEAN_ROOT_PATH}/postgres:/var/lib/postgresql/data networks: @@ -30,7 +30,7 @@ services: image: redis:7-alpine container_name: ${CONTAINER_NAME}-redis command: redis-server --appendonly yes - restart: unless-stopped + restart: always volumes: - ${GLEAN_ROOT_PATH}/redis:/data networks: @@ -65,7 +65,7 @@ services: ADMIN_USERNAME: ${ADMIN_USERNAME:-admin} ADMIN_PASSWORD: ${ADMIN_PASSWORD:-} ADMIN_ROLE: ${ADMIN_ROLE:-super_admin} - restart: unless-stopped + restart: always healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:8000/api/health" ] interval: 10s @@ -98,7 +98,7 @@ services: env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} - restart: unless-stopped + restart: always command: [ "uv", "run", "--no-sync", "arq", "glean_worker.main.WorkerSettings" ] web: @@ -110,7 +110,7 @@ services: - "${PANEL_APP_PORT_HTTP:-80}:80" networks: - glean-network - restart: unless-stopped + restart: always env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env} @@ -124,7 +124,7 @@ services: - "${PANEL_APP_PORT_ADMIN:-3001}:80" networks: - glean-network - restart: unless-stopped + restart: always env_file: - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} - ${ENV_FILE:-/etc/1panel/envs/default.env}