Operations¶
Upgrading¶
cd /opt/meetings
git pull
docker compose pull db caddy # security fixes in the base images
docker compose build --pull app
docker compose up -d db
docker compose run --rm migrate # applies schema changes; safe to run every time
docker compose up -d --remove-orphans
docker image prune -f
Migrations in db/migrations/ run once each, in order, and are recorded in the schema_migrations table, so running migrate again changes nothing. Take a backup first anyway.
The app restarts in a few seconds; requests during that time get a 502 from Caddy.
Backups¶
Everything MeetAlias knows is in Postgres: meetings, clients, contacts, settings, photos, the encrypted client secret and encrypted Google or Microsoft tokens. Events themselves also live in each person's Google or Outlook calendar. Back up the database, plus .env and config/ (store .env separately and securely, it holds the secrets).
A manual backup¶
Nightly backups¶
A minimal example with cron. Encrypt the dump if it leaves the server, for example with age:
30 3 * * * root cd /opt/meetings && docker compose exec -T db pg_dump -U meetings --format=custom meetings | age -r age1yourpublickey... > /var/backups/meetings-$(date +\%F).dump.age && find /var/backups -name 'meetings-*.dump.age' -mtime +14 -delete
Copy the files off the server (object storage with write-only credentials is a good fit) and keep the age private key off the server.
Restoring¶
docker compose stop app
docker compose exec -T db dropdb -U meetings meetings
docker compose exec -T db createdb -U meetings meetings
docker compose exec -T db pg_restore -U meetings -d meetings --no-owner < meetings-2026-01-31.dump
docker compose run --rm migrate
docker compose up -d app
Restore needs the same SECRET_KEY, or the stored client secret and tokens can't be decrypted.
Test your restore
Restore into a scratch install now and then. A backup you've never restored is a guess.
Monitoring¶
- Health check:
GET /api/healthreturnsok(HTTP 200) when the app can reach the database,error(503) otherwise, and nothing else. Point an external uptime monitor athttps://meet.example.com/api/health. - Container health:
docker compose psshowshealthyforappanddb. - Logs:
docker compose logs -f app(sync, email and startup messages),docker compose logs -f caddy(requests, certificates). Logs are capped at 3 × 10 MB per container. - Google or Microsoft access: when someone's access breaks, they see a banner; admins see a list of affected people on the meeting list and the error on their meeting pages.
- Microsoft client secret: admins see a banner from 30 days before it expires. See Renewing the secret.
Rotating secrets¶
Rotate after a suspected leak, or when someone with server access leaves.
| Secret | How | Effect |
|---|---|---|
| Google client secret | Add a new secret on the OAuth client in Google Cloud, enter it under Profile → Team access → Google connection and pass the test sign-in, then delete the old one in Google Cloud. | None. |
| Microsoft client secret | See Renewing the secret. | None. |
POSTGRES_PASSWORD |
docker compose exec db psql -U meetings -c "ALTER USER meetings PASSWORD '<new>'", update .env, docker compose up -d. |
None. |
SECRET_KEY |
Put a new one in .env, docker compose up -d. |
Everyone is signed out and must sign in again, granting access again (stored tokens can't be decrypted any more). The stored Google or Microsoft client secret can't be decrypted either, so nobody can sign in, and there's no screen yet to enter it again without signing in. Reschedule/cancel links in clients' existing emails stop working. Clients can still contact the organizer. |
If you suspect stored tokens leaked, also revoke them at the provider: on Google, have each person remove MeetAlias under Google Account → Security → Third-party apps; on Microsoft, use Revoke sessions on each user in Entra ID, or create a new client secret and delete the old one.
Removing someone¶
When a person leaves:
- Before they go, have them cancel or hand over upcoming client meetings.
- As an admin, click Remove next to them in Profile → Team access. They are signed out everywhere and can't sign in again, MeetAlias stops using their Google or Microsoft account, their booking pages close, and their seat is freed. Their meetings stay in MeetAlias as history.
- Remove or suspend their Google or Microsoft account as usual.