2.0.0 needs a fresh database. It starts from a new schema baseline. Pointed at a 1.x database it refuses to start with:
database schema predates Beacon 2.0.0; 2.0.0 needs a fresh database
1.x history does not carry over. For the all-in-one stack, in this order:
1. Stop the stack and keep a copy of everything you edited.
docker compose down
cp -r ../docker-deployment-type1 ../docker-deployment-type1.bak # .env, config.yaml, Caddy files, blocklist2. Update the deployment files. If the folder is a git clone, git pull will refuse
because the 1.x layout tracked .env and you edited docker-compose.yml:
git checkout -- . && git pullThen put your own files back from the copy: .env, data/app/config.yaml, and anything you
changed under data/Caddy/. Do not copy docker-compose.yml back; re-apply your
POSTGRES_PASSWORD to the new one instead.
3. Fix the database names. The user and database are called beacon now, not tower.
In .env, change both in POSTGRES_DSN (postgres://beacon:...@db:5432/beacon). The new
docker-compose.yml already uses beacon. The names only have to agree with each other, so
if you have already initialised a 2.0.0 database under tower, either keep tower in both
places or move that data directory away as well.
4. Move the 1.x database away and start. Postgres only creates the user and database on an empty data directory, so do this after step 3, not before:
mv data/postgres data/postgres-1.x # or rm -rf data/postgres once you no longer need it
docker compose pull
docker compose up -ddocker compose down also lets the network come back with the new fixed subnet. If
172.30.0.0/24 is already used on your host, pick another in docker-compose.yml and change
server.trusted_proxies in data/app/config.yaml to match.
Config that stops startup if left as it was:
- Every manual
scopes:entry needsregion:set to one of yourregions:slugs. - MeshMapper refresh intervals must be within bounds:
meshmapper.scopes.refresh_interval1h to 24h,meshmapper.zones.refresh_intervalandmeshmapper.channels.refresh_interval24h to 168h. packets.retentionandanalytics.rollup_retentionmust be at least24h.server.trusted_proxiesentries must be CIDRs (10.0.0.5/32, not10.0.0.5).
Other changes to review:
meshmapper.scopes.sourcesis ignored, with a warning. Scope catalogues are now found through MeshMapper's zone list for every known IATA.- REST rate limiting is on by default: 300 requests per minute per client IP on
/api/v1/*(IPv6 clients share a /64), answered with429andRetry-After. Behind a proxy, setserver.trusted_proxiesand have the proxy sendX-Real-IP(see Reverse proxy);X-Forwarded-ForandTrue-Client-IPare not trusted. Tune or turn it off underratelimit:. - WebSocket upgrades are rate limited to
websocket.max_connects_per_minute(default 10) per client IP, on top ofmax_connections_per_ip(default 5). Only the page's own host may open/wsunless you list other origins inwebsocket.allowed_origins, for example when the web app is served from a different host than the API. packets.retentionnow defaults to 7 days and also covers observations and channel messages. Historical stats come from hourly rollups kept foranalytics.rollup_retention(90 days).- Admin endpoints under
/api/v1/admin/needBEACON_API_KEY(orauth.api_key). - Image tags:
latestis the newest stable release frommain. Pin:2.0on both images if you want to choose when to move to the next minor release.
app_config/config.yaml.example is the full 2.0.0
reference.
Pin both images to the same release line in docker-compose.yml (see
Image tags), then:
docker compose pull
docker compose up -dDatabase migrations run when the server starts. Read the release notes first; a release that
needs a config change says so there. Keep server and web on the same X.Y.
Since server 2.0.4, a server can require a minimum Beacon Web version (minWebVersion at
GET /api/v1/info; see web.min_web_version in Configuration). An older web
build shows a "reload" screen instead of the app, so pull the web image together with the server.
When upgrading to a Beacon build with MeshMapper API authentication, configure the key
before relying on imports. Ask your local MeshMapper regional or grouped-region admin
for a key covering the required APIs and your region or all member regions. Confirm
MeshMapper Server supports X-API-Key before enforcement; see
MeshMapper API key for the rollout details.
Set MESHMAPPER_API_KEY in the backend .env, then recreate the app container:
docker compose up -d --force-recreate appWithout a key, Beacon keeps running and retains saved imports, but MeshMapper refreshes
are unconfigured. Existing IP exemptions are not a substitute for a key. After configuring
one, check the MeshMapper logs for successful refreshes; existing backoff still applies.
If you use backups, leave meshmapper.api_key empty in the saved YAML and keep the key in
the environment. Exports refuse a nonempty saved YAML key.
Beacon reads config.yaml once at startup. After editing it, run
docker compose restart app. On the next start:
- A newly added channel key decrypts the matching stored messages. Look for
config: backfilled N previously-undecrypted channel message(s)in the log. - Border file and MeshMapper import changes take effect.
- Changed admin or MeshMapper keys in the YAML file are picked up.
For environment changes in .env, use docker compose up -d --force-recreate app instead.
A container restart reuses its old environment.
The one runtime-only setting is CORS origins: PUT /api/v1/admin/config changes them without a
restart, and nothing is written to the file, so a restart reloads whatever the file says.