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