From 8fbbe94bb281a172c0cea8e27a27d56fb65ce901 Mon Sep 17 00:00:00 2001 From: arch3rPro <30855883+arch3rPro@users.noreply.github.com> Date: Mon, 7 Jul 2025 18:16:15 +0800 Subject: [PATCH] update AFFiNE stable-e98f035 --- .../{stable => stable-e98f035}/data.yml | 0 apps/affine/stable/docker-compose.yml | 89 ------------------- 2 files changed, 89 deletions(-) rename apps/affine/{stable => stable-e98f035}/data.yml (100%) delete mode 100644 apps/affine/stable/docker-compose.yml diff --git a/apps/affine/stable/data.yml b/apps/affine/stable-e98f035/data.yml similarity index 100% rename from apps/affine/stable/data.yml rename to apps/affine/stable-e98f035/data.yml diff --git a/apps/affine/stable/docker-compose.yml b/apps/affine/stable/docker-compose.yml deleted file mode 100644 index 76578b6..0000000 --- a/apps/affine/stable/docker-compose.yml +++ /dev/null @@ -1,89 +0,0 @@ -services: - affine: - image: ghcr.io/toeverything/affine-graphql:stable - container_name: ${CONTAINER_NAME} - ports: - - ${PANEL_APP_PORT_HTTP}:3010 - depends_on: - redis: - condition: service_healthy - postgres: - condition: service_healthy - affine_migration: - condition: service_completed_successfully - volumes: - # custom configurations - - ${UPLOAD_LOCATION}:/root/.affine/storage - - ${CONFIG_LOCATION}:/root/.affine/config - environment: - - REDIS_SERVER_HOST=redis - - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} - - AFFINE_INDEXER_ENABLED=false - networks: - - 1panel-network - restart: always - labels: - createdBy: Apps - affine_migration: - image: ghcr.io/toeverything/affine-graphql:stable - 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'] - networks: - - 1panel-network - environment: - - REDIS_SERVER_HOST=redis - - DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@postgres:5432/${DB_DATABASE:-affine} - - AFFINE_INDEXER_ENABLED=false - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - labels: - createdBy: Apps - restart: no - redis: - image: redis - container_name: ${CONTAINER_NAME}_redis - healthcheck: - test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping'] - interval: 10s - timeout: 5s - retries: 5 - networks: - - 1panel-network - labels: - 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 - labels: - 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_HOST_AUTH_METHOD: trust - healthcheck: - test: - ['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