这篇文章距离最后更新已过19 天,如果文章内容或图片资源失效,请留言反馈,我会及时处理,谢谢!
affine安装
name: affine
services:
affine:
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
container_name: affine_server
ports:
- '${PORT:-3010}:3010'
depends_on:
affine_migration:
condition: service_completed_successfully
volumes:
# custom configurations
- ./storage:/root/.affine/storage
- ./config:/root/.affine/config
environment:
- REDIS_SERVER_HOST=1.xx.59.xx
- REDIS_SERVER_PORT=6379
- DATABASE_URL=postgresql://postgres:inyaw2025@1.117.59.182:5432/affine
- AFFINE_INDEXER_ENABLED=false
restart: unless-stopped
affine_migration:
image: ghcr.io/toeverything/affine:${AFFINE_REVISION:-stable}
container_name: affine_migration_job
volumes:
# custom configurations
- ./storage:/root/.affine/storage
- ./config:/root/.affine/config
command: ['sh', '-c', 'node ./scripts/self-host-predeploy.js']
environment:
- REDIS_SERVER_HOST=1.xx.59.xx
- REDIS_SERVER_PORT=6379
- DATABASE_URL=postgresql://postgres:xx@1.xx.59.xx:5432/affine
- AFFINE_INDEXER_ENABLED=false