96f8cbc708
Supavisor (Erlang/Elixir) cannot start if it cannot resolve its own hostname. Setting a fixed hostname solves the name resolution failure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
# Ergänzungen zum offiziellen Supabase docker-compose.yml
|
|
# Start: docker compose -p nightly -f docker-compose.yml -f docker-compose.override.yml up -d
|
|
|
|
services:
|
|
|
|
# Schema-Migration wird beim ersten Postgres-Start eingespielt
|
|
db:
|
|
volumes:
|
|
- ./volumes/db/data:/var/lib/postgresql/data:Z
|
|
- ../nightly-migrations/001_schema.sql:/docker-entrypoint-initdb.d/99_nightly.sql:ro
|
|
|
|
# Kong (Supabase API-Gateway) → im proxy-Netzwerk für NPM
|
|
kong:
|
|
networks:
|
|
- default
|
|
- proxy
|
|
|
|
# Studio (Admin-Dashboard) → im proxy-Netzwerk für NPM
|
|
studio:
|
|
networks:
|
|
- default
|
|
- proxy
|
|
|
|
# Realtime braucht ebenfalls Zugriff auf Kong
|
|
realtime:
|
|
networks:
|
|
- default
|
|
- proxy
|
|
|
|
# Pooler: fixer Hostname damit Erlang-VM den eigenen Namen auflösen kann
|
|
supabase-pooler:
|
|
hostname: supabase-pooler
|
|
|
|
# Nightly Scheduler: APNs-Ping + Resonance-Milestones
|
|
# ⚠️ APNs: erfordert bezahlten Apple Developer Account ($99/Jahr)
|
|
scheduler:
|
|
build: ./scheduler
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env.nightly
|
|
environment:
|
|
SUPABASE_URL: http://kong:8000
|
|
SUPABASE_SERVICE_ROLE_KEY: ${SERVICE_ROLE_KEY}
|
|
depends_on:
|
|
- kong
|
|
networks:
|
|
- default
|
|
|
|
networks:
|
|
# Externes Netzwerk das NPM und Supabase teilen
|
|
# Anlegen mit: docker network create proxy
|
|
proxy:
|
|
external: true
|