From 76b462162a54be41b923e66e1d4213a2a1a6bc14 Mon Sep 17 00:00:00 2001 From: arch3rPro Date: Tue, 12 Aug 2025 10:09:14 +0800 Subject: [PATCH] feat: update affine v0.24.0 --- apps/affine/{0.23.3 => v0.24.0}/data.yml | 0 .../{0.23.3 => v0.24.0}/docker-compose.yml | 50 +++++++++++-------- 2 files changed, 29 insertions(+), 21 deletions(-) rename apps/affine/{0.23.3 => v0.24.0}/data.yml (100%) rename apps/affine/{0.23.3 => v0.24.0}/docker-compose.yml (70%) diff --git a/apps/affine/0.23.3/data.yml b/apps/affine/v0.24.0/data.yml similarity index 100% rename from apps/affine/0.23.3/data.yml rename to apps/affine/v0.24.0/data.yml diff --git a/apps/affine/0.23.3/docker-compose.yml b/apps/affine/v0.24.0/docker-compose.yml similarity index 70% rename from apps/affine/0.23.3/docker-compose.yml rename to apps/affine/v0.24.0/docker-compose.yml index f9e7955..c9d818f 100644 --- a/apps/affine/0.23.3/docker-compose.yml +++ b/apps/affine/v0.24.0/docker-compose.yml @@ -1,6 +1,6 @@ services: affine: - image: ghcr.io/toeverything/affine:0.23.3 + image: ghcr.io/toeverything/affine:v0.24.0 container_name: ${CONTAINER_NAME} ports: - ${PANEL_APP_PORT_HTTP}:3010 @@ -12,7 +12,6 @@ services: affine_migration: condition: service_completed_successfully volumes: - # custom configurations - ${UPLOAD_LOCATION}:/root/.affine/storage - ${CONFIG_LOCATION}:/root/.affine/config environment: @@ -20,20 +19,22 @@ services: - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} - AFFINE_INDEXER_ENABLED=false networks: - - 1panel-network + - 1panel-network restart: always labels: - createdBy: Apps + createdBy: Apps affine_migration: image: ghcr.io/toeverything/affine:0.23.3 container_name: ${CONTAINER_NAME}_migration_job volumes: - # custom configurations - ${UPLOAD_LOCATION}:/root/.affine/storage - ${CONFIG_LOCATION}:/root/.affine/config - command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js'] + command: + - sh + - -c + - node ./scripts/self-host-predeploy.js networks: - - 1panel-network + - 1panel-network environment: - REDIS_SERVER_HOST=redis - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} @@ -44,47 +45,54 @@ services: redis: condition: service_healthy labels: - createdBy: Apps - skipStatusCheck: "true" - restart: no + createdBy: Apps + skipStatusCheck: 'true' + restart: 'no' redis: image: redis container_name: ${CONTAINER_NAME}_redis healthcheck: - test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping'] + test: + - CMD + - redis-cli + - --raw + - incr + - ping interval: 10s timeout: 5s retries: 5 networks: - - 1panel-network + - 1panel-network labels: - createdBy: Apps + createdBy: Apps restart: always - postgres: image: pgvector/pgvector:pg16 container_name: ${CONTAINER_NAME}_postgres volumes: - ${DB_DATA_LOCATION}:/var/lib/postgresql/data networks: - - 1panel-network + - 1panel-network labels: - createdBy: Apps + createdBy: Apps environment: POSTGRES_USER: ${DB_USERNAME} POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_DB: ${DB_DATABASE:-affine} - POSTGRES_INITDB_ARGS: '--data-checksums' - # you better set a password for you database - # or you may add 'POSTGRES_HOST_AUTH_METHOD=trust' to ignore postgres security policy + POSTGRES_INITDB_ARGS: --data-checksums POSTGRES_HOST_AUTH_METHOD: trust healthcheck: test: - ['CMD', 'pg_isready', '-U', "${DB_USERNAME}", '-d', "${DB_DATABASE:-affine}"] + - CMD + - pg_isready + - -U + - ${DB_USERNAME} + - -d + - ${DB_DATABASE:-affine} interval: 10s timeout: 5s retries: 5 restart: always networks: 1panel-network: - external: true \ No newline at end of file + external: true