Server Deploy / deploy (push) Successful in 5m8s
FREE_INSTANCE_REAP_AFTER is set only in docker-compose.site.yml, so a self-hosted deployment can never reap. Admin and server must carry the same value: one names the deletion date in warnings, the other acts on it. Records that admin now has a second control-plane write path, cloudprov, and that deletion lives in the control plane because that is where the knowledge of what an instance is made of belongs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
68 lines
2.5 KiB
YAML
68 lines
2.5 KiB
YAML
services:
|
|
# Adds to the base `server` service defined in docker-compose.yml —
|
|
# only the cloud deployment reaps abandoned Free instances.
|
|
server:
|
|
environment:
|
|
FREE_INSTANCE_REAP_AFTER: "336h"
|
|
site:
|
|
image: gitea.hostxtra.co.uk/mrhid6/vantage/site:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- 3003:3000
|
|
depends_on:
|
|
- sitesvc
|
|
sitesvc:
|
|
image: gitea.hostxtra.co.uk/mrhid6/vantage/sitesvc:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8082:8082
|
|
environment:
|
|
PORT: "8082"
|
|
MONGO_URI: ${MONGO_URI:-}
|
|
PUBLIC_URL: ${PUBLIC_URL:-}
|
|
SITE_ORIGIN: ${SITE_ORIGIN:-}
|
|
TRUST_PROXY: ${SITE_TRUST_PROXY:-false}
|
|
SMTP_HOST: ${SMTP_HOST:-}
|
|
SMTP_PORT: ${SMTP_PORT:-587}
|
|
SMTP_USERNAME: ${SMTP_USERNAME:-}
|
|
SMTP_PASSWORD: ${SMTP_PASSWORD:-}
|
|
SMTP_FROM: ${SMTP_FROM:-}
|
|
SMTP_TO: ${SMTP_TO:-support@hostxtra.co.uk}
|
|
admin:
|
|
image: gitea.hostxtra.co.uk/mrhid6/vantage/admin:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- 8083:8083
|
|
environment:
|
|
PORT: "8083"
|
|
ADMIN_MONGO_URI: ${ADMIN_MONGO_URI:-}
|
|
CONTROL_MONGO_URI: ${MONGO_URI:-}
|
|
REDIS_ADDR: ${REDIS_ADDR:-10.10.10.2:6379}
|
|
REDIS_USERNAME: ${REDIS_USERNAME:-}
|
|
REDIS_PASSWORD: ${REDIS_PASSWORD:-}
|
|
LICENSE_SIGNING_KEY: ${LICENSE_SIGNING_KEY:-}
|
|
PUBLIC_URL: ${ADMIN_PUBLIC_URL:-}
|
|
ADMIN_ORIGIN: ${ADMIN_ORIGIN:-}
|
|
TRUST_PROXY: ${TRUST_PROXY:-true}
|
|
SMTP_HOST: ${SMTP_HOST:-}
|
|
SMTP_PORT: ${SMTP_PORT:-587}
|
|
SMTP_USERNAME: ${SMTP_USERNAME:-}
|
|
SMTP_PASSWORD: ${SMTP_PASSWORD:-}
|
|
SMTP_FROM: ${SMTP_FROM:-}
|
|
APP_LOGIN_URL: ${APP_LOGIN_URL:-}
|
|
FREE_INSTANCE_REAP_AFTER: "336h"
|
|
|
|
# The staff and customer console, served at vantage-hq.hostxtra.co.uk.
|
|
# ADMIN_API_URL is baked into the image at build time, not read here, so
|
|
# changing it needs a rebuild rather than a restart — and it must appear in
|
|
# admin's ADMIN_ORIGIN above or the browser blocks every request.
|
|
adminsite:
|
|
image: gitea.hostxtra.co.uk/mrhid6/vantage/adminsite:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
# 3000 is web, 3003 is the marketing site; this takes 3004.
|
|
- 3004:3000
|
|
depends_on:
|
|
- admin
|
|
networks: {}
|