fix: teable
This commit is contained in:
@@ -15,7 +15,7 @@ services:
|
||||
condition: service_healthy
|
||||
environment:
|
||||
- SERVICE_FQDN_SUPABASEKONG_8000
|
||||
- 'KONG_PORT_MAPS=443:8000'
|
||||
- KONG_PORT_MAPS=443:8000
|
||||
- JWT_SECRET=${SERVICE_PASSWORD_JWT}
|
||||
- KONG_DATABASE=off
|
||||
- KONG_DECLARATIVE_CONFIG=/home/kong/kong.yml
|
||||
|
||||
@@ -4,25 +4,23 @@
|
||||
# logo: svgs/teable.png
|
||||
# port: 3000
|
||||
|
||||
|
||||
version: '3.9'
|
||||
services:
|
||||
teable:
|
||||
image: 'ghcr.io/teableio/teable:latest'
|
||||
image: ghcr.io/teableio/teable:latest
|
||||
volumes:
|
||||
- 'teable-data:/app/.assets:rw'
|
||||
- teable_data:/app/.assets:rw
|
||||
environment:
|
||||
- SERVICE_FQDN_TEABLE_3000
|
||||
- 'PUBLIC_ORIGIN=${SERVICE_FQDN_TEABLE}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- 'SECRET_KEY=${SERVICE_PASSWORD_64_SECRET}'
|
||||
- 'TZ=${TIMEZONE}'
|
||||
- 'PRISMA_DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@teable-db:${POSTGRES_PORT}/${POSTGRES_DB}'
|
||||
- PUBLIC_ORIGIN=${SERVICE_FQDN_TEABLE}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
- SECRET_KEY=${SERVICE_PASSWORD_64_SECRET}
|
||||
- TZ=${TIMEZONE}
|
||||
- PRISMA_DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@teable-db:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||
- NEXT_ENV_IMAGES_ALL_REMOTE=true
|
||||
- PORT=3000
|
||||
- 'REDIS_PASSWORD=${SERVICE_PASSWORD_REDIS}'
|
||||
- REDIS_PASSWORD=${SERVICE_PASSWORD_REDIS}
|
||||
- BACKEND_CACHE_PROVIDER=redis
|
||||
- 'BACKEND_CACHE_REDIS_URI=redis://default:${SERVICE_PASSWORD_REDIS}@teable-cache:6379/0'
|
||||
- BACKEND_CACHE_REDIS_URI=redis://default:${SERVICE_PASSWORD_REDIS}@teable-cache:6379/0
|
||||
- BACKEND_MAIL_HOST=${BACKEND_MAIL_HOST}
|
||||
- BACKEND_MAIL_PORT=${BACKEND_MAIL_PORT}
|
||||
- BACKEND_MAIL_SECURE=${BACKEND_MAIL_SECURE}
|
||||
@@ -42,16 +40,17 @@ services:
|
||||
interval: 5s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
|
||||
teable-db:
|
||||
image: 'postgres:15.4'
|
||||
image: postgres:15.4
|
||||
volumes:
|
||||
- 'teable-db:/var/lib/postgresql/data:rw'
|
||||
- teable_db_data:/var/lib/postgresql/data:rw
|
||||
environment:
|
||||
- 'TZ=${TIMEZONE}'
|
||||
- 'POSTGRES_DB=${POSTGRES_DB:-teable}'
|
||||
- 'POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}'
|
||||
- 'POSTGRES_USER=${SERVICE_USER_POSTGRES}'
|
||||
- 'POSTGRES_PORT=${POSTGRES_PORT:-5432}'
|
||||
- TZ=${TIMEZONE}
|
||||
- POSTGRES_DB=${POSTGRES_DB:-teable}
|
||||
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES}
|
||||
- POSTGRES_USER=${SERVICE_USER_POSTGRES}
|
||||
- POSTGRES_PORT=${POSTGRES_PORT:-5432}
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
@@ -60,23 +59,23 @@ services:
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
teable-db-migrate:
|
||||
image: 'ghcr.io/teableio/teable-db-migrate:latest'
|
||||
restart: 'no'
|
||||
image: ghcr.io/teableio/teable-db-migrate:latest
|
||||
restart: no
|
||||
environment:
|
||||
- 'TZ=${TIMEZONE}'
|
||||
- 'PRISMA_DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@teable-db:${POSTGRES_PORT}/${POSTGRES_DB}'
|
||||
- TZ=${TIMEZONE}
|
||||
- PRISMA_DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@teable-db:${POSTGRES_PORT}/${POSTGRES_DB}
|
||||
depends_on:
|
||||
teable-db:
|
||||
condition: service_healthy
|
||||
teable-cache:
|
||||
image: 'redis:7.2.4'
|
||||
image: redis:7.2.4
|
||||
environment:
|
||||
- REDIS_PORT=6379
|
||||
- REDIS_DB=0
|
||||
- 'REDIS_PASSWORD=${SERVICE_PASSWORD_REDIS}'
|
||||
- REDIS_PASSWORD=${SERVICE_PASSWORD_REDIS}
|
||||
volumes:
|
||||
- 'teable-cache:/data:rw'
|
||||
command: 'redis-server --appendonly yes --requirepass ${SERVICE_PASSWORD_REDIS}'
|
||||
- teable_cache_data:/data:rw
|
||||
command: redis-server --appendonly yes --requirepass ${SERVICE_PASSWORD_REDIS}
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user