v1 softlaunch
This commit is contained in:
22
compose.yaml
22
compose.yaml
@@ -30,8 +30,9 @@ services:
|
||||
MP_SMTP_AUTH_ACCEPT_ANY: "1"
|
||||
MP_SMTP_AUTH_ALLOW_INSECURE: "1"
|
||||
|
||||
# Web tier — runs `pnpm start` (Next.js production server).
|
||||
app:
|
||||
image: touchbase/app:dev
|
||||
image: touchbase/app:latest
|
||||
profiles: [prod]
|
||||
build:
|
||||
context: .
|
||||
@@ -40,15 +41,27 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
# Reads all env vars from .env in the project root. Override any of these
|
||||
# via host env vars before `docker-compose up` (e.g. on the production
|
||||
# host you'd point DATABASE_URL at the real DB host, set AUTH_SECRET
|
||||
# to a generated value, etc.).
|
||||
env_file: .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: postgresql://touchbase:touchbase@postgres:5432/touchbase_dev?schema=public
|
||||
DATABASE_URL: ${DATABASE_URL:-postgresql://touchbase:touchbase@postgres:5432/touchbase_dev?schema=public}
|
||||
APP_URL: ${APP_URL:-http://localhost:3000}
|
||||
expose:
|
||||
- "3000"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "node -e \"fetch('http://localhost:3000/api/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))\""]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
|
||||
# Background worker — runs `pnpm worker` (pg-boss handlers).
|
||||
worker:
|
||||
image: touchbase/app:dev
|
||||
image: touchbase/app:latest
|
||||
profiles: [prod]
|
||||
build:
|
||||
context: .
|
||||
@@ -58,9 +71,10 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
env_file: .env
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: postgresql://touchbase:touchbase@postgres:5432/touchbase_dev?schema=public
|
||||
DATABASE_URL: ${DATABASE_URL:-postgresql://touchbase:touchbase@postgres:5432/touchbase_dev?schema=public}
|
||||
APP_TZ: ${APP_TZ:-America/Detroit}
|
||||
SMTP_HOST: ${SMTP_HOST:-mailpit}
|
||||
SMTP_PORT: ${SMTP_PORT:-1025}
|
||||
|
||||
Reference in New Issue
Block a user