# Two marketing/company sites + one shared backend — deliberately separate # from apps/bi/docker-compose.yml (the actual product). Both nginx services # below reverse-proxy /api/* to the SAME Flask `backend` (see each site's # own nginx.conf) — one Resend account, one contact endpoint, for both # sites' contact forms — so the browser only ever talks to its own site's # origin and the backend's Python source is never exposed as a static file. # # Deployed as its own Dokploy Compose app, same Gitea repo as the Sightbox # ERPNext stack (Compose Path: website/docker-compose.yml) but a SEPARATE # Dokploy application — this is a different product line entirely, not # part of the ERPNext deployment. See website/README.md. # # No registry/build.sh/push step here, unlike backend-billing's pattern — # these are small enough that Dokploy's own `build:` (straight from each # Dockerfile, on deploy) is simpler and sufficient; nothing here needs the # "exact bytes tested are the exact bytes that run" guarantee the ERPNext # bench's build-locally-push-pull pattern exists for. # # Local ports: 8082 (bi.bettersight.io) and 8084 (bettersight.io) — chosen # because 8080/8081/8083 are already used by other projects on this # machine; confirm these are still free wherever you deploy this. services: backend: build: ./backend container_name: bettersight-website-backend restart: unless-stopped # Plain environment: vars, not env_file: ./backend/.env — confirmed the # hard way elsewhere in this same Dokploy server (see sightbox's own # docker-compose.yml, backend-billing service): Dokploy wipes and # re-clones the whole git checkout on every AutoDeploy, so a file # living inside it (as env_file: pointed at) never survives to the # next deploy. Dokploy's own Environment tab variables are stored in # Dokploy's own database and rewritten fresh into a .env next to this # compose file on every deploy, independent of the git clone — set # these for real there. See backend/.env.example for what each does. environment: RESEND_API_KEY: ${RESEND_API_KEY:-} MAIL_SENDER_NAME: ${MAIL_SENDER_NAME:-Bettersight Intelligence} MAIL_SENDER_ADDRESS: ${MAIL_SENDER_ADDRESS:-} SALES_EMAIL: ${SALES_EMAIL:-sales@bettersight.io} SITE_BASE_URL: ${SITE_BASE_URL:-https://bettersight.io} RATELIMIT_PER_HOUR: ${RATELIMIT_PER_HOUR:-20} website: # bi.bettersight.io — Bettersight Intelligence (the AI/RAG product). build: . container_name: bettersight-website ports: - "${BI_PUBLISH_PORT:-8082}:80" depends_on: - backend restart: unless-stopped website-bettersight-io: # bettersight.io — the parent company's own apex page. build: ./website-bettersight.io container_name: bettersight-io-website ports: - "${BETTERSIGHT_IO_PUBLISH_PORT:-8084}:80" depends_on: - backend restart: unless-stopped