forked from wangziqi/gongxue-base
feat: scaffold supabase multi-tenant backend
This commit is contained in:
25
docker-compose.api.yml
Normal file
25
docker-compose.api.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: tiku-saas-dev
|
||||
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/api/Dockerfile
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 8787
|
||||
DATABASE_URL: postgresql://postgres:postgres@host.docker.internal:54322/postgres
|
||||
DEFAULT_TENANT_SLUG: master
|
||||
CORS_ORIGIN: http://127.0.0.1:5173,http://localhost:5173,http://127.0.0.1:5174,http://localhost:5174
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
ports:
|
||||
- "8787:8787"
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- wget -qO- http://127.0.0.1:8787/health >/dev/null 2>&1 || exit 1
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 6
|
||||
start_period: 15s
|
||||
Reference in New Issue
Block a user