Files
gongxue-base/docker-compose.api.yml
2026-07-01 03:31:17 +08:00

27 lines
708 B
YAML

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
DB_POOL_MAX: 10
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