2021-11-01 16:42:52 -06:00
|
|
|
# Development containers, these should only be used if you are developing.
|
Postgres -> SQLite hard cutover: the database moves into the media directory.
The database now lives at <media>/config/wrolpi.db so a library (files,
configs, AND database) travels with the drive between WROLPi systems.
Core:
- wrolpi/db.py: lazy SQLite engine factory (WAL, busy_timeout=30s,
foreign_keys=ON); get_db_curs yields a plain sqlite3.Cursor; native
sqlite3 paramstyle everywhere (no compatibility shims); global sqlite3
adapters keep raw-SQL datetime formats identical to the ORM's.
- wrolpi/fts.py: FTS5 external-content search replacing tsvector/GIN.
Injection-proof websearch->FTS5 translator, bm25(10,4,2,1) reproducing
A/B/C/D weighting, fast(abc)/deep column filtering, snippet headlines.
Stemming contract pinned by dedicated tests (watch/watches/watched/
watching are interchangeable).
- wrolpi/schema_ddl.py: SQLite triggers shared verbatim by the alembic
baseline and test DBs; fixes the channel video_count DELETE/UPDATE
bugs and a latent total_size bug (it used the video id as channel id).
- wrolpi/db_bootstrap.py: startup auto-create/migrate; refuses databases
written by a newer WROLPi (db_version_mismatch); SQLite 3.40 floor;
network-filesystem refusal; never creates/migrates/trusts a database
beneath an unmounted production media directory (shadow-DB guard).
- Alembic: 85 Postgres-era migrations squashed into one baseline;
revision ids are dates (2026_07_10_1350) so filenames self-sort and
alembic_version says when a schema was created; render_as_batch=True.
- All raw Postgres SQL rewritten (ANY->json_each IN, array_agg @> ->
HAVING COUNT(DISTINCT), unnest->executemany/UPDATE..FROM,
generate_series histograms->strftime GROUP BY, DISTINCT ON->
row_number(), writable CTEs->two statements, jsonb_*->json_*, explicit
NULLS FIRST/LAST, LIMIT-before-OFFSET). Simple statements converted
to SQLAlchemy instead (flag upsert, download retry/summary/tag checks,
channel-by-tag estimate, Directory delete).
- Config imports count skipped entries; background dumps are blocked
after a lossy import so partial imports can never overwrite YAML
configs (they are the sole source of truth for rebuilds now).
- Search tolerates explicit JSON nulls for limit/offset (Postgres
treated OFFSET NULL as 0; SQLite errors).
- file_group.id/doc_section.id render as INTEGER PRIMARY KEY on SQLite
(BIGINT is not a rowid alias; FTS5 content_rowid requires it).
Ops teardown: docker-compose db service, CI postgres sidecars,
initialize_api_db.sh, controller postgresql service, psycopg2-binary all
removed. upgrade.sh stops/disables postgresql (data is NOT deleted;
`systemctl enable --now postgresql` restores it); systemd units no
longer Want postgresql.service.
Existing-user upgrade: first boot creates+migrates the DB, configs
import (tags recreate their FileGroups from disk), a refresh rebuilds
the library index. QA'd on the 10.0.0.8 RPi: rebuild matched the
Postgres baseline exactly; survived an uncontrolled hard reboot with
clean integrity checks.
Accepted behavior changes: FTS5 has no stopwords; bm25 length
normalization shifts some rank orders; fast-path d_headline is
un-highlighted; all-negative queries match nothing.
Deferred: Debian/trixie package lists (incl. sqlite3 CLI), Cypress
re-baseline, VACUUM INTO snapshots, exFAT/NTFS warning, auto-kicked
rebuild refresh with progress UX.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 13:59:20 -06:00
|
|
|
# The database is SQLite inside the media directory (./test/config/wrolpi.db); no db service.
|
2021-11-01 16:42:52 -06:00
|
|
|
version: '3'
|
|
|
|
|
services:
|
2025-12-11 18:32:55 -07:00
|
|
|
controller: # WROLPi Controller Service
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/controller/Dockerfile
|
|
|
|
|
restart: unless-stopped
|
|
|
|
|
ports:
|
2026-04-07 20:01:49 -06:00
|
|
|
- "8080:80"
|
2025-12-11 18:32:55 -07:00
|
|
|
volumes:
|
|
|
|
|
# Controller code (for development hot-reload)
|
|
|
|
|
- ./controller:/app/controller
|
|
|
|
|
# Docker socket for container management
|
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
# Host system info (read-only)
|
|
|
|
|
- /proc:/host/proc:ro
|
|
|
|
|
- /sys:/host/sys:ro
|
2026-03-29 11:00:09 -06:00
|
|
|
# Media directory (needed for Samba share path validation)
|
|
|
|
|
- ${MEDIA_DIRECTORY:-./test}:/media/wrolpi
|
2025-12-11 18:32:55 -07:00
|
|
|
environment:
|
|
|
|
|
- DOCKERIZED=true
|
|
|
|
|
- MEDIA_DIRECTORY=/media/wrolpi
|
|
|
|
|
# Override CMD to enable auto-reload for development
|
2026-04-07 20:01:49 -06:00
|
|
|
command: ["python", "-m", "controller.serve"]
|
2025-12-11 18:32:55 -07:00
|
|
|
healthcheck:
|
2026-04-07 20:01:49 -06:00
|
|
|
test: [ 'CMD-SHELL', 'curl -f http://127.0.0.1:80/api/health || exit 1' ]
|
2025-12-11 18:32:55 -07:00
|
|
|
interval: 30s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
start_period: 10s
|
|
|
|
|
retries: 3
|
|
|
|
|
|
2021-11-01 16:42:52 -06:00
|
|
|
api:
|
|
|
|
|
depends_on:
|
2026-02-20 14:37:58 -07:00
|
|
|
controller:
|
|
|
|
|
condition: service_started
|
2021-11-01 16:42:52 -06:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/api/Dockerfile
|
2026-01-22 18:55:12 -07:00
|
|
|
environment:
|
|
|
|
|
# Sanic 25.x wants 'spawn' but our code uses 'fork' for multiprocessing.
|
|
|
|
|
# This tells Sanic to accept the existing start method.
|
|
|
|
|
- SANIC_START_METHOD_SET=1
|
2021-11-01 16:42:52 -06:00
|
|
|
volumes:
|
|
|
|
|
- './main.py:/opt/wrolpi/main.py'
|
|
|
|
|
- './wrolpi:/opt/wrolpi/wrolpi'
|
|
|
|
|
- './modules:/opt/wrolpi/modules'
|
2024-04-14 13:06:03 -06:00
|
|
|
- './scripts:/opt/wrolpi/scripts'
|
2021-11-01 16:42:52 -06:00
|
|
|
- './test:/opt/wrolpi/test'
|
2022-01-22 19:54:46 -07:00
|
|
|
- './test:/media/wrolpi'
|
2021-11-01 16:42:52 -06:00
|
|
|
- './alembic:/opt/wrolpi/alembic'
|
|
|
|
|
- './alembic.ini:/opt/wrolpi/alembic.ini'
|
|
|
|
|
ports:
|
2025-01-26 12:44:16 -07:00
|
|
|
- ${REACT_APP_API-0.0.0.0:8081}:8081
|
2021-11-01 16:42:52 -06:00
|
|
|
user: '${UID-1000}:${GID-1000}'
|
2024-03-06 17:41:04 -07:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8081/api/echo' ]
|
|
|
|
|
interval: 2m
|
2021-11-01 16:42:52 -06:00
|
|
|
|
2024-03-06 17:41:04 -07:00
|
|
|
archive: # Python/Sanic wrapper around Singlefile and Readability.
|
2023-04-01 15:50:11 -06:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/archive/Dockerfile
|
|
|
|
|
volumes:
|
|
|
|
|
- './docker/archive/main.py:/app/main.py'
|
|
|
|
|
ports:
|
|
|
|
|
- '8083:8080'
|
2026-10-15 18:10:17 -06:00
|
|
|
# The Sanic app is PID 1 and reaps nothing; check_output kills each command's process group,
|
|
|
|
|
# and the killed grandchildren (chrome, cat, node) are orphaned to it as zombies (several per
|
|
|
|
|
# archive). init runs tini as PID 1 to reap them.
|
|
|
|
|
init: true
|
2023-04-01 15:50:11 -06:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:8080/' ]
|
2024-03-06 17:41:04 -07:00
|
|
|
interval: 2m
|
2021-11-01 16:42:52 -06:00
|
|
|
|
2024-03-06 17:41:04 -07:00
|
|
|
app: # React App
|
2021-11-01 16:42:52 -06:00
|
|
|
depends_on:
|
|
|
|
|
- api
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/app/Dockerfile
|
|
|
|
|
volumes:
|
2021-11-02 10:26:07 -06:00
|
|
|
- './app/public:/app/public'
|
|
|
|
|
- './app/src:/app/src'
|
|
|
|
|
- './app/package.json:/app/package.json'
|
2022-10-26 11:21:03 -06:00
|
|
|
- '.env:/app/.env'
|
2021-11-02 10:26:07 -06:00
|
|
|
command: 'npm run start'
|
2021-11-01 16:42:52 -06:00
|
|
|
stdin_open: true
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:3000' ]
|
2024-03-06 17:41:04 -07:00
|
|
|
interval: 1m
|
2021-11-01 16:42:52 -06:00
|
|
|
user: '${UID-1000}:${GID-1000}'
|
2023-01-31 18:08:07 -07:00
|
|
|
environment:
|
Replace nginx with Caddy for TLS termination and reverse proxying.
- Replace nginx with Caddy as the web server for both Docker and native
(RPi/Debian) deployments. Caddy handles HTTPS termination, reverse
proxying to all services (API, React app, Controller, Kiwix, Help, Map),
and serves the media/download file browsers.
- Generate a Root CA and signed leaf certificates for HTTPS. The Root CA
uses Name Constraints to restrict signing to local addresses only
(.local, localhost, and RFC 1918 private IP ranges), mitigating MITM
risk if the CA key is compromised.
- Add an HTTP landing page that guides users through one-time CA
certificate installation on iOS, Android, macOS, Windows, Linux, and
Firefox, with auto-redirect when the cert is already trusted.
- Add trailing-slash redirects for /controller, /docs, /media, and
/download so bare paths don't fall through to the React catch-all.
- Add a Root CA download link on the Settings page under Configs.
- Update help.sh diagnostics for IPv6 listener detection and HTTP/2
status codes.
- Remove all nginx config files and the https_proxy Docker container.
- Bump wrolpi-help submodule with certificate documentation.
2026-03-07 12:08:27 -07:00
|
|
|
# Force React to use Caddy port to connect to it's websocket.
|
2023-01-31 18:08:07 -07:00
|
|
|
- WDS_SOCKET_PORT=0
|
dev: stop the app container linting on every rebuild
react-scripts lints in-process on every incremental rebuild. Each save
pays for it, and the result is buried under a few hundred warnings the
repo has carried for years -- `no-useless-computed-key` on the wire-gauge
tables, `react-hooks/exhaustive-deps` across most of Common.js. Finding
"Compiled successfully" in that takes a scroll.
This container only serves; it never builds. Linting still happens where
it is acted on: `npm run build` and CI both run it, and both fail on a
real error.
NOT a memory fix, though that is why I reached for it -- the dev server
was OOM-killed three times in an afternoon and I claimed this would be the
biggest saving. It is not. Measured both ways with the same procedure
(recreate, load a page, wait for the typecheck, read `docker stats`) the
container settles at 3.5GB with linting and 3.0GB then 3.7GB without it.
The spread between two runs of the SAME configuration is wider than the
spread between configurations, so the effect is below what this can
measure. Raising Docker Desktop's VM limit from 8GB to 16GB is what
actually stopped the kills.
Kept anyway, on the time and the noise, which are not in doubt.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-02 13:07:08 -06:00
|
|
|
# react-scripts lints in-process on every incremental rebuild, which costs time on each
|
|
|
|
|
# save and buries the compile result under a few hundred warnings the repo has carried
|
|
|
|
|
# for years. This container only serves; linting still happens where it is acted on --
|
|
|
|
|
# `npm run build` and CI both run it, and both fail on a real error.
|
|
|
|
|
#
|
|
|
|
|
# NOT a memory fix, though it was tried as one after the dev server was OOM-killed three
|
|
|
|
|
# times in an afternoon. Measured either way, the container settles anywhere between
|
|
|
|
|
# 3.0GB and 3.7GB and the spread between two runs of the SAME configuration is wider
|
|
|
|
|
# than the spread between configurations. Raising Docker Desktop's VM limit is what
|
|
|
|
|
# actually stopped the kills.
|
|
|
|
|
- DISABLE_ESLINT_PLUGIN=true
|
2021-11-01 16:42:52 -06:00
|
|
|
|
Replace nginx with Caddy for TLS termination and reverse proxying.
- Replace nginx with Caddy as the web server for both Docker and native
(RPi/Debian) deployments. Caddy handles HTTPS termination, reverse
proxying to all services (API, React app, Controller, Kiwix, Help, Map),
and serves the media/download file browsers.
- Generate a Root CA and signed leaf certificates for HTTPS. The Root CA
uses Name Constraints to restrict signing to local addresses only
(.local, localhost, and RFC 1918 private IP ranges), mitigating MITM
risk if the CA key is compromised.
- Add an HTTP landing page that guides users through one-time CA
certificate installation on iOS, Android, macOS, Windows, Linux, and
Firefox, with auto-redirect when the cert is already trusted.
- Add trailing-slash redirects for /controller, /docs, /media, and
/download so bare paths don't fall through to the React catch-all.
- Add a Root CA download link on the Settings page under Configs.
- Update help.sh diagnostics for IPv6 listener detection and HTTP/2
status codes.
- Remove all nginx config files and the https_proxy Docker container.
- Bump wrolpi-help submodule with certificate documentation.
2026-03-07 12:08:27 -07:00
|
|
|
web: # Caddy reverse proxy - handles HTTPS for all services.
|
2021-11-01 16:42:52 -06:00
|
|
|
depends_on:
|
|
|
|
|
- app
|
Replace nginx with Caddy for TLS termination and reverse proxying.
- Replace nginx with Caddy as the web server for both Docker and native
(RPi/Debian) deployments. Caddy handles HTTPS termination, reverse
proxying to all services (API, React app, Controller, Kiwix, Help, Map),
and serves the media/download file browsers.
- Generate a Root CA and signed leaf certificates for HTTPS. The Root CA
uses Name Constraints to restrict signing to local addresses only
(.local, localhost, and RFC 1918 private IP ranges), mitigating MITM
risk if the CA key is compromised.
- Add an HTTP landing page that guides users through one-time CA
certificate installation on iOS, Android, macOS, Windows, Linux, and
Firefox, with auto-redirect when the cert is already trusted.
- Add trailing-slash redirects for /controller, /docs, /media, and
/download so bare paths don't fall through to the React catch-all.
- Add a Root CA download link on the Settings page under Configs.
- Update help.sh diagnostics for IPv6 listener detection and HTTP/2
status codes.
- Remove all nginx config files and the https_proxy Docker container.
- Bump wrolpi-help submodule with certificate documentation.
2026-03-07 12:08:27 -07:00
|
|
|
- zim
|
|
|
|
|
- help
|
2024-06-12 18:44:59 -06:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/web/Dockerfile
|
2021-11-01 16:42:52 -06:00
|
|
|
ports:
|
2024-06-12 18:44:59 -06:00
|
|
|
- ${WEB_HOST-0.0.0.0}:${WEB_HTTPS_PORT-8443}:443
|
Replace nginx with Caddy for TLS termination and reverse proxying.
- Replace nginx with Caddy as the web server for both Docker and native
(RPi/Debian) deployments. Caddy handles HTTPS termination, reverse
proxying to all services (API, React app, Controller, Kiwix, Help, Map),
and serves the media/download file browsers.
- Generate a Root CA and signed leaf certificates for HTTPS. The Root CA
uses Name Constraints to restrict signing to local addresses only
(.local, localhost, and RFC 1918 private IP ranges), mitigating MITM
risk if the CA key is compromised.
- Add an HTTP landing page that guides users through one-time CA
certificate installation on iOS, Android, macOS, Windows, Linux, and
Firefox, with auto-redirect when the cert is already trusted.
- Add trailing-slash redirects for /controller, /docs, /media, and
/download so bare paths don't fall through to the React catch-all.
- Add a Root CA download link on the Settings page under Configs.
- Update help.sh diagnostics for IPv6 listener detection and HTTP/2
status codes.
- Remove all nginx config files and the https_proxy Docker container.
- Bump wrolpi-help submodule with certificate documentation.
2026-03-07 12:08:27 -07:00
|
|
|
- '8084:8084'
|
|
|
|
|
- '8085:8085'
|
|
|
|
|
- '8086:8086'
|
2021-11-01 16:42:52 -06:00
|
|
|
volumes:
|
Replace nginx with Caddy for TLS termination and reverse proxying.
- Replace nginx with Caddy as the web server for both Docker and native
(RPi/Debian) deployments. Caddy handles HTTPS termination, reverse
proxying to all services (API, React app, Controller, Kiwix, Help, Map),
and serves the media/download file browsers.
- Generate a Root CA and signed leaf certificates for HTTPS. The Root CA
uses Name Constraints to restrict signing to local addresses only
(.local, localhost, and RFC 1918 private IP ranges), mitigating MITM
risk if the CA key is compromised.
- Add an HTTP landing page that guides users through one-time CA
certificate installation on iOS, Android, macOS, Windows, Linux, and
Firefox, with auto-redirect when the cert is already trusted.
- Add trailing-slash redirects for /controller, /docs, /media, and
/download so bare paths don't fall through to the React catch-all.
- Add a Root CA download link on the Settings page under Configs.
- Update help.sh diagnostics for IPv6 listener detection and HTTP/2
status codes.
- Remove all nginx config files and the https_proxy Docker container.
- Bump wrolpi-help submodule with certificate documentation.
2026-03-07 12:08:27 -07:00
|
|
|
- './docker/web/Caddyfile:/etc/caddy/Caddyfile'
|
|
|
|
|
- './icon.ico:/etc/caddy/favicon.ico'
|
|
|
|
|
- './icon.png:/etc/caddy/icon.png'
|
2021-11-01 16:42:52 -06:00
|
|
|
- './test:/opt/media'
|
2026-03-29 18:58:31 -06:00
|
|
|
- './modules/map/static:/opt/wrolpi/modules/map/static:ro'
|
Map previews that never drew, and a Docker map with no world under it (#658)
* ui: a preview map that waited for a container it could never see
Both map preview modals -- the per-region eye button and "View All Regions"
-- opened to an empty box. Each renders a div into a Modal and hands it to
MapLibre from an effect gated on `open`, reading the node out of a `useRef`:
if (!open || !mapContainer.current) return;
Mantine's Modal mounts its body one commit after `opened` flips true, so on
the render that opens the modal the ref is still null. The effect returns,
nothing it depends on changes again, and it never runs a second time. No
console error, no rejected promise, no canvas -- just an empty div.
Semantic UI's Portal mounted the body in the same commit that opened it, so
the ref was attached by the time effects ran. The effect bodies are
byte-identical across that migration; the modal library is the only variable,
confirmed against a device still running the older build where both previews
render.
A callback ref instead, so the effect re-runs when the node arrives and this
stops depending on any modal's mounting schedule. The async source lookup
also gets a cancelled flag: it could resolve after the cleanup ran, building
a map nothing would ever remove and leaking a WebGL context per open.
The tests drive the real page and assert a map was built against a node that
is in the document -- the outcome, rather than the mechanism that quietly
changed underneath it. Seven of the eight fail on the code before this.
* build: docker had no world underneath its map regions
Caddy serves /blobs/map-overview.pmtiles out of /opt/wrolpi-blobs, and that
blob is the world at zoom 0-6 -- what a regional extract sits on top of.
Without it a user who subscribes to a few regions gets those regions floating
on an empty background everywhere their data does not reach. Only a full
planet file, at 134GB, makes it unnecessary.
Raspberry Pi and Debian installs get the blob from pi-gen, the live-build
config, and upgrade.sh. Docker got nothing: the compose file bind-mounted a
git-ignored host directory over /opt/wrolpi-blobs, and a bind mount replaces
the image's directory rather than merging with it, so the path existed and was
empty on every Docker WROLPi. Verified against a running deployment, where
that URL returned 404 while the same URL on hardware returned 206.
So the web image fetches the blob at build time, as the other three builders
do, and the mount that would hide it is gone. `curl -f` so an HTTP error
fails the layer -- an image that builds without the blob is this same bug,
except silent at build time too.
The tests read the deployment files rather than a built container: building
to check costs a CDN download and several minutes, and both things that broke
-- nothing fetches it, a mount hides it -- are visible in the source.
* ui: cancel the load handler too, and make the cancel test falsifiable
Review follow-ups on the preview modals.
The `cancelled` flag was checked before constructing the map but not inside
the `load` handler it installs, so cleanup landing between the two left that
body drawing into a map `remove()` had already torn down. Guarded, mirroring
the `destroyed` pattern in MapViewer.js. The source promise also gets a
`.catch`: the helper cannot reject today, but nothing says it never will, and
an unhandled rejection here would be as quiet as the bug this all started as.
Two test corrections, both cases of an assertion claiming more than it read:
The region-drawing test spied on `addSource` AFTER construction and then
re-fired `load` by hand, so its count came entirely from that manual call and
said nothing about the production path. FakeMap now records the sources it is
given, and the assertion reads what the component's own `load` drew -- each
region once, in order, and none for the entry with no bbox.
The new cancel test passed with the guard deleted, which is worse than not
having it: Mantine had not mounted the modal body when it closed, so the
effect had never run and there was nothing to cancel. It now waits for the
effect to reach the source lookup before closing, and ships beside a control
that releases the same held promise WITHOUT closing and requires a map. The
control is what makes the zero meaningful; verified that removing the guard
fails the cancel test while the control still passes.
2026-08-11 20:37:14 -06:00
|
|
|
# No mount over /opt/wrolpi-blobs. A bind mount REPLACES the image's directory rather
|
|
|
|
|
# than merging with it, and the host './blobs' this used to mount is git-ignored -- so
|
|
|
|
|
# it was empty on every clone and hid the blobs the image provides. The web image bakes
|
|
|
|
|
# map-overview.pmtiles in; see docker/web/Dockerfile.
|
Replace nginx with Caddy for TLS termination and reverse proxying.
- Replace nginx with Caddy as the web server for both Docker and native
(RPi/Debian) deployments. Caddy handles HTTPS termination, reverse
proxying to all services (API, React app, Controller, Kiwix, Help, Map),
and serves the media/download file browsers.
- Generate a Root CA and signed leaf certificates for HTTPS. The Root CA
uses Name Constraints to restrict signing to local addresses only
(.local, localhost, and RFC 1918 private IP ranges), mitigating MITM
risk if the CA key is compromised.
- Add an HTTP landing page that guides users through one-time CA
certificate installation on iOS, Android, macOS, Windows, Linux, and
Firefox, with auto-redirect when the cert is already trusted.
- Add trailing-slash redirects for /controller, /docs, /media, and
/download so bare paths don't fall through to the React catch-all.
- Add a Root CA download link on the Settings page under Configs.
- Update help.sh diagnostics for IPv6 listener detection and HTTP/2
status codes.
- Remove all nginx config files and the https_proxy Docker container.
- Bump wrolpi-help submodule with certificate documentation.
2026-03-07 12:08:27 -07:00
|
|
|
environment:
|
|
|
|
|
- MEDIA_DIRECTORY=/opt/media
|
|
|
|
|
# Set EXTRA_SANS to include the host's LAN IP in the TLS certificate.
|
|
|
|
|
# Example: EXTRA_SANS=IP:10.0.0.5
|
|
|
|
|
- EXTRA_SANS=${EXTRA_SANS:-}
|
2026-10-02 15:49:18 -06:00
|
|
|
# Caddy is PID 1 and reaps nothing; busybox wget's ssl_client helper from the healthcheck is
|
|
|
|
|
# orphaned to it and stays a zombie (one per check). init runs tini as PID 1 to reap them.
|
|
|
|
|
init: true
|
2021-11-01 16:42:52 -06:00
|
|
|
healthcheck:
|
2026-04-07 20:01:49 -06:00
|
|
|
test: [ 'CMD-SHELL', 'wget --spider --no-check-certificate https://127.0.0.1:443 || exit 1' ]
|
2024-03-06 17:41:04 -07:00
|
|
|
interval: 1m
|
2022-03-08 13:26:03 -07:00
|
|
|
|
2024-03-06 17:41:04 -07:00
|
|
|
zim: # kiwix-serve
|
2023-05-29 18:04:03 -06:00
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/zim/Dockerfile
|
|
|
|
|
volumes:
|
|
|
|
|
- './test:/media/wrolpi'
|
2023-08-26 19:37:57 -06:00
|
|
|
- './docker/zim/entrypoint.sh:/entrypoint.sh'
|
2024-06-12 18:44:59 -06:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:80' ]
|
|
|
|
|
interval: 1m
|
|
|
|
|
|
2026-03-29 11:00:09 -06:00
|
|
|
samba: # Samba file sharing - started/stopped by the controller based on configured shares.
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/samba/Dockerfile
|
|
|
|
|
restart: "no"
|
|
|
|
|
depends_on:
|
|
|
|
|
controller:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
ports:
|
|
|
|
|
- "445:445"
|
|
|
|
|
volumes:
|
|
|
|
|
- ${MEDIA_DIRECTORY:-./test}:/media/wrolpi
|
|
|
|
|
|
2023-10-15 17:18:33 -06:00
|
|
|
help: # The WROLPi Help documentation.
|
|
|
|
|
build:
|
|
|
|
|
context: .
|
|
|
|
|
dockerfile: docker/help/Dockerfile
|
|
|
|
|
volumes:
|
|
|
|
|
- './docker/help/wrolpi-help:/opt/wrolpi-help'
|
2024-03-06 17:41:04 -07:00
|
|
|
healthcheck:
|
2026-10-02 15:49:18 -06:00
|
|
|
test: [ 'CMD-SHELL', 'curl http://127.0.0.1:80' ] # mkdocs serves on 80; 8086 is Caddy's proxy.
|
2024-03-06 17:41:04 -07:00
|
|
|
interval: 1m
|