feat: add Dockerfile, .dockerignore, and deployment documentation for Coolify integration

This commit is contained in:
Najjar\NajjarV02
2026-05-21 11:08:48 +04:00
parent 019ea56e6f
commit 2505fccd5f
5 changed files with 232 additions and 0 deletions
+16
View File
@@ -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
+19
View File
@@ -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',