doxa-maps/compose.yaml
Doxa Maps f29df44140 Cloud container: main is the default production branch; the embed address and open mode are documented
- PRODUCTION_BRANCH defaulted to `production`, a branch this repo does not have (development is the
  table, main is production). compose.yaml and every deployment already set main; a platform deploy
  that left it unset watched a missing branch and /cdn never built. Default main in build-cdn.sh,
  pb-prod-migrations.sh and admin.mjs, and in the README.
- EMBED_BASE_URL was missing from the settings table. Unset, the published snippets stay relative.
- Open mode is for a laptop or a private network: it has none of the public mode's guards. Said so.
- compose.yaml reads the repo-root .env, the same file bun run dev reads, so laptop-only settings
  would reach the container. Said so in compose.yaml and the platform table.
2026-09-29 09:18:56 +00:00

24 lines
911 B
YAML

# One dx-maps team container, the same image a platform builds from ./Dockerfile:
# docker compose up -d --build
# Settings come from a .env file next to this one (never committed): REPO_URL is required, GIT_TOKEN
# for a private repo, and the OIDC_* settings for the sign-in; every setting is in deployment/cloud/README.md.
# It is the same .env that `bun run dev` reads, and all of it reaches the container: on a server, keep
# laptop-only settings (DX_PB_URL, DX_SYNC_*) out of it.
services:
dx-maps:
build: .
env_file:
- path: .env
required: false
environment:
REPO_URL: ${REPO_URL:?set REPO_URL to the dx-maps git URL, in .env}
BRANCH: ${BRANCH:-development}
PRODUCTION_BRANCH: ${PRODUCTION_BRANCH:-main}
ports:
- "${PORT:-5173}:${PORT:-5173}"
volumes:
- dx-data:/data
mem_limit: 2560m
restart: unless-stopped
volumes:
dx-data: