forked from wangziqi/gongxue-base
26 lines
686 B
YAML
26 lines
686 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
|
|
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
|