Full cutover: auth, users, collection and friendships now run on Directus via @directus/sdk, with owner/visibility rules enforced by Directus permissions. - middleware: Directus session (directus_auth cookie) with token refresh - /login is Directus (email normalized to lowercase), new /register page (first/last name, username) backed by public registration - collection, friends and profile pages + all API endpoints ported; ownership and addressee-only accept/decline enforced by permissions - display names use first_name/last_name everywhere (nav, friends, profile) - PocketBase SDK, POCKETBASE_URL and pb_schema.json removed - README and compose updated for DIRECTUS_URL
18 lines
686 B
YAML
18 lines
686 B
YAML
# PokeShare app, pointing at an external PocketBase instance.
|
|
# In Coolify, deploy this file as a "Docker Compose" resource and expose the
|
|
# `app` service on your public domain.
|
|
services:
|
|
app:
|
|
build: .
|
|
restart: unless-stopped
|
|
environment:
|
|
# Full URL of the Directus instance to use (required).
|
|
DIRECTUS_URL: ${DIRECTUS_URL:-https://directus.namarusaja.me}
|
|
healthcheck:
|
|
# / redirects to /login (302) — check a 200 endpoint instead
|
|
test: "wget -q -O /dev/null http://localhost:4321/login || exit 1"
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 15s
|