Run the pod provider from images with make start, and fix what a fresh stack exposed

- docker-compose-dev.yml: the redis host port is overridable (REDIS_PORT in the root
  .env, 6379 by default as in the sibling apps), and the pod provider, in host network
  mode, follows it for its queue and OIDC redis. All of ./data/fuseki is mounted at the
  image's SEMAPPS_FUSEKI_BASE, so account deletion removes the backups and, 24 h later,
  the secure dataset's files (it answered 500 without the mount).
- backend: GET /app served the app actor snapshot the mixin takes before it creates or
  replaces the access-need group, so a dataset's first boot lacked the link until a
  restart; the app service refreshes the snapshot from the store at the end of started().
- e2e smoke: the post-install poll sends Accept: application/ld+json; the pod answers 500
  to a container read in any other format.
- Docs: cookbook (Redis port, mounts, hot reload, dataset-named accounts, fresh-boot
  note), deployment note, env examples; claims about a parallel race are no longer stated
  as fact.
This commit is contained in:
Sylvain Duchesne
2026-11-02 21:46:37 +01:00
parent 5e3e821e2a
commit 223059c629
9 changed files with 156 additions and 28 deletions
+6 -1
View File
@@ -24,9 +24,14 @@ services:
- ./data/backend/logs:/app/backend/logs:z
- ./data/backend/jwt:/app/backend/jwt:z
- ./data/backend/uploads:/app/backend/uploads:z
# Account deletion removes the account's dataset files and backups from disk, at the image's SEMAPPS_FUSEKI_BASE (../data/fuseki)
- ./data/fuseki:/app/data/fuseki:z
environment:
SEMAPPS_JENA_PASSWORD: admin
SEMAPPS_DEFAULT_LOCALE: en
# Host network: the pod provider reaches redis on its published host port (REDIS_PORT, default 6379)
SEMAPPS_QUEUE_SERVICE_URL: redis://localhost:${REDIS_PORT:-6379}/1
SEMAPPS_REDIS_OIDC_PROVIDER_URL: redis://localhost:${REDIS_PORT:-6379}/2
# Allow the Pod backend to access the app backend
# See https://docs.docker.com/network/drivers/host/
network_mode: 'host'
@@ -58,7 +63,7 @@ services:
expose:
- '6379'
ports:
- '6379:6379'
- '${REDIS_PORT:-6379}:6379'
volumes:
- ./data/redis:/data:z
command: ['redis-server', '--appendonly', 'yes']