feat: add Dockerfile, .dockerignore, and deployment documentation for Coolify integration
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# Production env — Coolify provides these at deploy time.
|
||||
|
||||
# Fallback backend URL — only used if the per-session `api_base_url` cookie
|
||||
# is not set. SaaS handoff sets that cookie; server proxy uses it.
|
||||
NEXT_PUBLIC_API_URL=https://api.reparee.com
|
||||
|
||||
# Used by "Workspace session not found" page CTA back to SaaS.
|
||||
NEXT_PUBLIC_SAAS_URL=https://reparee.com
|
||||
|
||||
# Image remotePatterns wildcard for SaaS-provisioned subdomains.
|
||||
NEXT_PUBLIC_GARAGE_HOST_PATTERN=*.reparee.com
|
||||
|
||||
# Forces Next to bind 0.0.0.0 in Docker. Coolify normally sets this.
|
||||
HOSTNAME=0.0.0.0
|
||||
PORT=3000
|
||||
NODE_ENV=production
|
||||
@@ -1,5 +1,6 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
output: 'standalone',
|
||||
images: {
|
||||
|
||||
remotePatterns: [
|
||||
@@ -21,6 +22,24 @@ const nextConfig = {
|
||||
port: '',
|
||||
pathname: '/**',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'api.reparee.com',
|
||||
port: '',
|
||||
pathname: '/**',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'reparee.com',
|
||||
port: '',
|
||||
pathname: '/**',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: 'tenant.reparee.com',
|
||||
port: '',
|
||||
pathname: '/**',
|
||||
},
|
||||
{
|
||||
protocol: 'https',
|
||||
hostname: process.env.NEXT_PUBLIC_GARAGE_HOST_PATTERN ?? '*.reparee.com',
|
||||
|
||||
Reference in New Issue
Block a user