@@ -1,8 +1,8 @@
|
||||
# Coolify deployment (Docker Compose build pack).
|
||||
# Postgres runs as a separate Coolify database resource so it gets scheduled backups;
|
||||
# set DATABASE_URL to its internal connection URL. Domains are assigned in the Coolify UI:
|
||||
# Coolify deployment (Docker Compose build pack): the one way KoolTap is deployed. See docs/production.md.
|
||||
# Postgres runs as a separate Coolify database resource so it gets scheduled backups; set DATABASE_URL to its
|
||||
# internal connection URL. Domains are assigned in the Coolify UI, on one site so the session cookie reaches the API:
|
||||
# api -> https://api.example.com:3001
|
||||
# dashboard -> https://dashboard.example.com:3000
|
||||
# dashboard -> https://example.com:3000
|
||||
services:
|
||||
api:
|
||||
build:
|
||||
@@ -13,12 +13,17 @@ services:
|
||||
DATABASE_URL: ${DATABASE_URL}
|
||||
JWT_SECRET: ${SERVICE_BASE64_64_JWT}
|
||||
PORT: 3001
|
||||
# The dashboard's address; several are comma separated
|
||||
CORS_ORIGIN: ${DASHBOARD_URL}
|
||||
RESEND_API_KEY: ${RESEND_API_KEY:-}
|
||||
RESEND_FROM_EMAIL: ${RESEND_FROM_EMAIL:-KoolTap <onboarding@resend.dev>}
|
||||
# Coolify's proxy is one hop; use 2 if Cloudflare proxying is also enabled
|
||||
TRUST_PROXY: ${TRUST_PROXY:-1}
|
||||
# Raise to make older terminal apps update; the default is in apps/api/src/terminal/app-version.ts
|
||||
MIN_APP_VERSION: ${MIN_APP_VERSION:-}
|
||||
volumes:
|
||||
# Product pictures: back this up with the database
|
||||
- images:/data/images
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3001/api/v1/health"]
|
||||
interval: 15s
|
||||
@@ -46,3 +51,6 @@ services:
|
||||
api:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
images:
|
||||
|
||||
Reference in New Issue
Block a user