Skip to content

Commit

Permalink
add AFFiNE
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Jun 20, 2024
1 parent d25f238 commit f4b1fb3
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 0 deletions.
120 changes: 120 additions & 0 deletions Apps/affine/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: affine
services:
affine:
image: ghcr.io/toeverything/affine-graphql:stable
container_name: affine-app
command:
['sh', '-c', 'node ./scripts/self-host-predeploy && node ./dist/index.js']
ports:
- "3010:3010"
- "5555:5555"
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
volumes:
# custom configurations
- /DATA/AppData/affine/config:/root/.affine/config
# blob storage
- /DATA/AppData/affine/storage:/root/.affine/storage
logging:
driver: 'json-file'
options:
max-size: '1000m'
restart: unless-stopped
environment:
- NODE_OPTIONS="--import=./scripts/register.js"
- AFFINE_CONFIG_PATH=/root/.affine/config
- REDIS_SERVER_HOST=redis
- DATABASE_URL=postgres://affine:affine@postgres:5432/affine
- NODE_ENV=production
- AFFINE_ADMIN_EMAIL=affine@acme.sh
- AFFINE_ADMIN_PASSWORD=affine
# Telemetry allows us to collect data on how you use the affine. This data will helps us improve the app and provide better features.
# Uncomment next line if you wish to quit telemetry.
# - TELEMETRY_ENABLE=false
deploy:
resources:
reservations:
memory: 1024M
networks:
- affine

redis:
image: redis:latest
container_name: affine-redis
restart: unless-stopped
volumes:
- /DATA/AppData/affine/redis:/data
healthcheck:
test: ['CMD', 'redis-cli', '--raw', 'incr', 'ping']
interval: 10s
timeout: 5s
retries: 5
networks:
- affine

postgres:
image: postgres:latest
container_name: affine-postgres
restart: unless-stopped
volumes:
- /DATA/AppData/affine/postgres:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U affine']
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: affine
POSTGRES_PASSWORD: affine
POSTGRES_DB: affine
PGDATA: /var/lib/postgresql/data/pgdata
networks:
- affine

networks:
affine:
name: affine

x-casaos:
architectures:
- arm64
- amd64
main: affine
author: Cp0204
category: Documents
description:
en_us: A privacy-focused, local-first, open-source, and ready-to-use alternative for Notion & Miro. One hyper-fused platform for wildly creative minds. AFFiNE is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
zh_cn: AFFiNE 是一个注重隐私、本地优先、开源且即时可用的 Notion 和 Miro 替代方案。这是一个专为狂野创意人士打造的超融合平台。AFFiNE 是一个下一代知识库,它将计划、分类和创建融为一体。隐私至上,开源,可定制,开箱即用。
developer: toeverything
icon: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/affine/icon.svg
screenshot_link:
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/affine/screenshot-1.png
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/affine/screenshot-2.png
- https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/affine/screenshot-2.png
tagline:
en_us: Open source alternative to Notion and Miro
zh_cn: Notion 和 Miro 的开源替代品
thumbnail: https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/affine/thumbnail.png
tips:
before_install:
en_us: |
After installation, change the default username and password from the environment variables.
| Variables | Default | Description |
| --- | --- | --- |
| AFFINE_ADMIN_EMAIL | affine@acme.sh | Account |
| AFFINE_ADMIN_PASSWORD | affine | Password |
zh_cn: |
安装后,从环境变量中修改默认用户名和密码。
| 变量 | 默认 | 说明 |
| --- | --- | --- |
| AFFINE_ADMIN_EMAIL | affine@acme.sh | 账号 |
| AFFINE_ADMIN_PASSWORD | affine | 密码 |
title:
en_us: AFFiNE
index: /
port_map: "3010"
4 changes: 4 additions & 0 deletions Apps/affine/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/affine/screenshot-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/affine/screenshot-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Apps/affine/screenshot-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ If you think this project is helpful to you, you can give me a little support. T
|:----:|---------|-------------|
| ![1Panel](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/1panel/icon.png) | [1Panel](./Apps/1panel) | Modern and Open-Source Linux Server Operation and Management Panel<br>现代化、开源的 Linux 服务器运维管理面板 |
| ![Adminer](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/adminer/icon.png) | [Adminer](./Apps/adminer) | Adminer is a database management tool that allows you to manage your databases with a simple and intuitive interface.<br>Adminer 是一个数据库管理工具,它通过简单直观的界面帮助您管理数据库。 |
| ![AFFiNE](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/affine/icon.svg) | [AFFiNE](./Apps/affine) | A privacy-focused, local-first, open-source, and ready-to-use alternative for Notion & Miro. One hyper-fused platform for wildly creative minds. AFFiNE is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.<br>AFFiNE 是一个注重隐私、本地优先、开源且即时可用的 Notion 和 Miro 替代方案。这是一个专为狂野创意人士打造的超融合平台。AFFiNE 是一个下一代知识库,它将计划、分类和创建融为一体。隐私至上,开源,可定制,开箱即用。 |
| ![Alist](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/Alist/icon.png) | [Alist](./Apps/Alist) | A file list program that supports multiple storage, powered by Gin and Solidjs.<br>一个支持多种存储的文件列表程序,使用 Gin 和 Solidjs。 |
| ![Aria2](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/aria2/icon.png) | [Aria2](./Apps/aria2) | Aria2 is a lightweight multi-protocol & multi-source command-line download utility. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.<br>Aria2 是一款轻量级的多协议和多源命令行下载工具。它支持 HTTP/HTTPS、FTP、SFTP、BitTorrent 和 Metalink 。 |
| ![BaiduNetDisk](https://cdn.jsdelivr.net/gh/Cp0204/CasaOS-AppStore-Play@main/Apps/baidunetdisk/icon.png) | [BaiduNetDisk](./Apps/baidunetdisk) | Baidu Netdisk is a cloud storage product carefully crafted by Baidu for users, providing huge space. Full format files such as photos, videos, documents, and compressed files can be backed up to the cloud with just one click, providing you with comprehensive data protection. No matter the size of the files, you can share them with others with just one click, improving work and learning efficiency.<br>百度网盘是百度为用户精心打造的云存储产品,提供超大空间。照片、视频、文档、压缩包等全格式文件一键备份到云端,全方位为你数据保驾护航,无论文件大小一键分享他人,提升工作学习效率。 |
Expand Down

0 comments on commit f4b1fb3

Please sign in to comment.