146 lines
5.9 KiB
YAML
146 lines
5.9 KiB
YAML
# Wanderer - Túra tervező és nyomkövetéssel
|
|
# Domain: ${SUBDOMAIN}.${DOMAIN} (web only — PocketBase is internal since 2026-10-28)
|
|
# Database: PocketBase (wanderer-db) + Meilisearch (kereső)
|
|
# RAM: ~350M (mem_limit: 1024M összesen) | Pi-compatible: Yes
|
|
#
|
|
# RE-PINNED 2026-07-21. The old template pinned a SINGLE image `ghcr.io/flomp/wanderer:0.16.0`,
|
|
# which does not resolve — upstream split the app into two images AND moved registry:
|
|
# ghcr.io/flomp/wanderer → docker.io/flomp/wanderer-web + docker.io/flomp/wanderer-db
|
|
# (the GitHub org also renamed Flomp → open-wanderer). The project is alive: v0.20.0, 2026-07-07.
|
|
# Structure below follows upstream's own docker-compose.yml at tag v0.20.0.
|
|
#
|
|
# Environment variables:
|
|
# DOMAIN - Your domain (e.g., demo-felhom.eu)
|
|
# SUBDOMAIN - the web hostname
|
|
# MEILI_MASTER_KEY - Keresőmotor kulcs (auto-generated)
|
|
# POCKETBASE_ENCRYPTION_KEY - PocketBase adatbázis kulcs (auto-generated, PONTOSAN 32 karakter)
|
|
#
|
|
# ONE HOSTNAME (2026-10-28, felhom.eu R-1335): PocketBase is NOT routed to the internet any more. The web server is the
|
|
# only caller of `PUBLIC_POCKETBASE_URL` — files reach the browser through the web's own `/api/v1/files/...` route (read
|
|
# in the v0.20.0 and v0.21.2 sources) — and upstream says since v0.21.1 that the db service must not be reachable from
|
|
# outside (its sample binds it to 127.0.0.1). The old public `hike-db` name also served PocketBase's admin page.
|
|
# NO POCKETBASE_PROXY_SECRET, on purpose: v0.21+ authenticates inbound ActivityPub deliveries between web and db with
|
|
# it, and without it inbound federation is REJECTED (fail closed, upstream's own docs). A household's Wanderer is a
|
|
# family instance; a stranger's server pushing into it is exactly what GHSA-fprh-3pp9-68m9 abused (D59).
|
|
|
|
services:
|
|
wanderer:
|
|
# container_name MUST equal the stack dir name — the controller's health probe finds the
|
|
# Traefik-exposed container by that exact name (REUSE.md §2).
|
|
image: flomp/wanderer-web:v0.21.2
|
|
container_name: wanderer
|
|
restart: unless-stopped
|
|
depends_on:
|
|
wanderer-search:
|
|
condition: service_healthy
|
|
wanderer-db:
|
|
condition: service_healthy
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- MEILI_URL=http://wanderer-search:7700
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
|
- ORIGIN=https://${SUBDOMAIN}.${DOMAIN}
|
|
- PUBLIC_POCKETBASE_URL=http://wanderer-db:8090
|
|
- BODY_SIZE_LIMIT=Infinity
|
|
# decision 47/48: open until the household closes sign-up (after_setup / close sign-up now)
|
|
- PUBLIC_DISABLE_SIGNUP=${SIGNUP_CLOSED:-false}
|
|
- UPLOAD_FOLDER=/app/uploads
|
|
- PUBLIC_MAP_MAX_POLYLINES=100
|
|
- OVERPASS_API_URL=https://overpass-api.de
|
|
- VALHALLA_URL=https://valhalla1.openstreetmap.de
|
|
- NOMINATIM_URL=https://nominatim.openstreetmap.org
|
|
volumes:
|
|
- wanderer_uploads:/app/uploads
|
|
networks:
|
|
- traefik-public
|
|
- wanderer-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 512M
|
|
healthcheck:
|
|
# The web image ships curl on PATH. No dedicated /health route exists — upstream probes root.
|
|
test: ["CMD", "curl", "--fail", "http://127.0.0.1:3000/"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 40s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.wanderer.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
|
|
- "traefik.http.routers.wanderer.entrypoints=websecure"
|
|
- "traefik.http.routers.wanderer.tls=true"
|
|
- "traefik.http.routers.wanderer.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.wanderer.loadbalancer.server.port=3000"
|
|
|
|
wanderer-db:
|
|
# PocketBase (custom upstream build). Built FROM scratch — no shell, no package manager; a
|
|
# static curl is baked in at /curl, which is why the healthcheck calls that absolute path.
|
|
image: flomp/wanderer-db:v0.21.2
|
|
container_name: wanderer-db
|
|
restart: unless-stopped
|
|
depends_on:
|
|
wanderer-search:
|
|
condition: service_healthy
|
|
environment:
|
|
- TZ=Europe/Budapest
|
|
- MEILI_URL=http://wanderer-search:7700
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
|
- POCKETBASE_ENCRYPTION_KEY=${POCKETBASE_ENCRYPTION_KEY}
|
|
- ORIGIN=https://${SUBDOMAIN}.${DOMAIN}
|
|
volumes:
|
|
- wanderer_data:/pb_data
|
|
# /data/plugins is NEW and REQUIRED as of v0.20.0 — the Strava/Komoot/Hammerhead
|
|
# integrations moved into a WASM plugin sandbox that lives here.
|
|
- wanderer_plugins:/data/plugins
|
|
networks:
|
|
- wanderer-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 256M
|
|
healthcheck:
|
|
test: ["CMD", "/curl", "--fail", "http://127.0.0.1:8090/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 20s
|
|
|
|
wanderer-search:
|
|
# Pinned to upstream's own v0.20.0 compose (R-42 ruling: a sidecar pin follows the app
|
|
# template's proposed pin, never the newest tag independently). Campaign 7 had bumped this to
|
|
# v1.49 while the app image was dead; upstream specifies v1.36.0.
|
|
image: getmeili/meilisearch:v1.36.0
|
|
container_name: wanderer-search
|
|
restart: unless-stopped
|
|
environment:
|
|
- MEILI_MASTER_KEY=${MEILI_MASTER_KEY}
|
|
- MEILI_NO_ANALYTICS=true
|
|
volumes:
|
|
- wanderer_meili_data:/meili_data
|
|
networks:
|
|
- wanderer-internal
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
# 384M, not 256M (2026-10-28, felhom.eu R-1335): at 256M Meilisearch peaked at 92-100 % of its limit on the
|
|
# bench and on 9202 (the step's memory_tight mark); test-record-move asks for the room and a new memory watch.
|
|
memory: 384M
|
|
healthcheck:
|
|
test: ["CMD", "curl", "--fail", "http://127.0.0.1:7700/health"]
|
|
interval: 15s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 20s
|
|
|
|
volumes:
|
|
wanderer_data:
|
|
wanderer_plugins:
|
|
wanderer_uploads:
|
|
wanderer_meili_data:
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true
|
|
wanderer-internal:
|