mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 12:38:10 +01:00
Production's SMTP credential has answered "Login denied" since at least
2026-09-05, so every send that "fell back" to it delivered nothing while the
code reported a provider. Mail now goes through Resend (@bitbaum/mail-kit),
or Listmonk when enabled with Resend behind it; a Resend failure is reported
as { success: false } instead of handed to a relay that cannot log in.
Removes transporter.ts, the Brevo probe script, EMAIL_* env, the nodemailer
dependency and its override, and rewrites the email docs to match.
114 lines
2.8 KiB
YAML
114 lines
2.8 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# PostgreSQL Database (Unified - for CMS API, NextAuth, and all services)
|
|
db:
|
|
image: postgres:15-alpine
|
|
container_name: revampit_db_prod
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: ${DB_USER:-revampit_prod}
|
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
|
POSTGRES_DB: ${DB_NAME:-revampit_cms}
|
|
POSTGRES_INITDB_ARGS: '--encoding=UTF-8'
|
|
volumes:
|
|
- db_data:/var/lib/postgresql/data
|
|
- ./postgres-init:/docker-entrypoint-initdb.d
|
|
networks:
|
|
- revampit_network
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U ${DB_USER:-revampit_prod}']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '10m'
|
|
max-file: '3'
|
|
|
|
# Meilisearch for fast product search
|
|
meilisearch:
|
|
image: getmeili/meilisearch:v1.11
|
|
container_name: revampit_meilisearch_prod
|
|
restart: unless-stopped
|
|
environment:
|
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
|
MEILI_ENV: production
|
|
MEILI_NO_ANALYTICS: 'true'
|
|
MEILI_HTTP_PAYLOAD_SIZE_LIMIT: '100 MB'
|
|
volumes:
|
|
- meilisearch_data:/meili_data
|
|
networks:
|
|
- revampit_network
|
|
healthcheck:
|
|
test: ['CMD', 'wget', '--no-verbose', '--spider', 'http://127.0.0.1:7700/health']
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '10m'
|
|
max-file: '3'
|
|
|
|
# Next.js Application (main frontend and backend API)
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.prod
|
|
container_name: revampit_app_prod
|
|
restart: unless-stopped
|
|
environment:
|
|
NODE_ENV: production
|
|
NEXT_PUBLIC_SITE_URL: ${NEXT_PUBLIC_SITE_URL}
|
|
PORT: 3000
|
|
HOSTNAME: 0.0.0.0
|
|
# Database
|
|
DB_HOST: db
|
|
DB_PORT: 5432
|
|
DB_NAME: ${DB_NAME:-revampit_cms}
|
|
DB_USER: ${DB_USER:-revampit_prod}
|
|
DB_PASSWORD: ${DB_PASSWORD}
|
|
# Auth
|
|
AUTH_SECRET: ${AUTH_SECRET}
|
|
NEXTAUTH_SECRET: ${NEXTAUTH_SECRET}
|
|
NEXTAUTH_URL: ${NEXTAUTH_URL}
|
|
# Search
|
|
MEILI_MASTER_KEY: ${MEILI_MASTER_KEY}
|
|
MEILI_PORT: 7700
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
meilisearch:
|
|
condition: service_healthy
|
|
networks:
|
|
- revampit_network
|
|
ports:
|
|
- '127.0.0.1:3000:3000'
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '10m'
|
|
max-file: '3'
|
|
healthcheck:
|
|
test:
|
|
['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://127.0.0.1:3000/api/health']
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
db_data:
|
|
driver: local
|
|
meilisearch_data:
|
|
driver: local
|
|
|
|
networks:
|
|
revampit_network:
|
|
driver: bridge
|
|
ipam:
|
|
config:
|
|
- subnet: 172.20.0.0/16
|