什么是 Teable ?
Teable 是一个基于 Postgres 构建的超快速、实时、专业、开发人员友好的无代码数据库。它使用简单的、类似电子表格的界面来创建复杂的企业级数据库应用程序。通过无代码解锁高效的应用程序开发,摆脱数据安全性和可扩展性的障碍。
# 下载镜像 docker ghcr.io/teableio/teable:latest # 如果拉不动的话加个代理 docker pull ghcr.dockerproxy.com/teableio/teable:latest # 重命名镜像(如果是通过代理下载的) docker tag ghcr.dockerproxy.com/teableio/teable:latest ghcr.io/teableio/teable:latest # 删除代理镜像(如果是通过代理下载的) docker rmi ghcr.dockerproxy.com/teableio/teable:latest
env.txt
TIMEZONE=Asia/Shanghai # Postgres POSTGRES_HOST=teable-db POSTGRES_PORT=5432 POSTGRES_DB=example POSTGRES_USER=example POSTGRES_PASSWORD=standalone_replace_password # App PUBLIC_ORIGIN=http://192.168.0.197:3091 PRISMA_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} PUBLIC_DATABASE_PROXY=192.168.0.197:42345 # Need to support sending emails to enable the following configurations # You need to modify the configuration according to the actual situation, otherwise it will not be able to send emails correctly. #BACKEND_MAIL_HOST=smtp.teable.io #BACKEND_MAIL_PORT=465 #BACKEND_MAIL_SECURE=true #BACKEND_MAIL_SENDER=noreply.teable.io #BACKEND_MAIL_SENDER_NAME=Teable #BACKEND_MAIL_AUTH_USER=username #BACKEND_MAIL_AUTH_PASS=password
table.yml
version: '3.9' services: teable: image: ghcr.io/teableio/teable:latest container_name: teable-app restart: always ports: - '3091:3000' volumes: - ./data:/app/.assets:rw env_file: - env.txt environment: - TZ=${TIMEZONE} - NEXT_ENV_IMAGES_ALL_REMOTE=true depends_on: - teable_db_migrate teable_db: image: postgres:15 container_name: teable-db restart: always ports: - '42345:5432' volumes: - ./db:/var/lib/postgresql/data:rw environment: - TZ=${TIMEZONE} - POSTGRES_DB=${POSTGRES_DB} - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} healthcheck: test: ['CMD-SHELL', "sh -c 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}'"] interval: 10s timeout: 3s retries: 3 teable_db_migrate: image: ghcr.io/teableio/teable-db-migrate:latest container_name: teable-db-migrate environment: - TZ=${TIMEZONE} - PRISMA_DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@teable_db:5432/${POSTGRES_DB} depends_on: - teable_db
docker-compose --env-file env.txt up -d
参考
- teableio/teable: ✨ A Super fast, Real-time, Professional, Developer friendly, No code database 地址:https://github.com/teableio/teable
- Teable - Postgres-Airtable Fusion 地址:https://teable.io/
- teable/dockers/examples/standalone at develop · teableio/teable 地址:https://github.com/teableio/teable/tree/develop/dockers/examples/standalone
- Teable 简介 | Teable 帮助中心 地址:https://help.teable.cn/