Files
rss-to-opds/docker-compose.demo.yaml
2026-11-15 18:15:03 -05:00

59 lines
1.8 KiB
YAML

# A self-contained demo: the catalogue plus a fake FreshRSS, so the whole
# thing can be tried with one command, without handing a real account over.
#
# docker compose -f docker-compose.demo.yaml up --build
# open http://127.0.0.1:8088/opds and sign in as demo / demo
#
# The fake account holds three feeds across two categories, a starred
# article and an already-read one. Downloading a book marks that article
# read in the fake server, so the unread queue drains as you use it.
#
# This is a demonstration, not a deployment: it publishes an unencrypted
# port on loopback with a known password. For real use, follow README.md
# with config.example.json and docker-compose.yaml.
name: opds-from-rss-demo
services:
fresh:
build:
context: .
dockerfile: Dockerfile.demo
image: opds-from-rss-demo-freshrss:latest
container_name: opds-demo-fresh
restart: "no"
# No ports: the catalogue reaches it over the compose network, and nothing
# else needs to.
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
opds:
build: .
image: opds-from-rss:latest
container_name: opds-demo-server
restart: "no"
depends_on:
fresh:
# Wait for the fake server to answer, so a reader's first tap does
# not land on an upstream that is still starting up.
condition: service_healthy
environment:
CONFIG_PATH: /config/config.json
volumes:
- ./config.demo.json:/config/config.json:ro
ports:
# 8088 on the host, because 8080 is a popular neighbour; the
# container itself always listens on 8080.
- "127.0.0.1:8088:8080"
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
cap_drop:
- ALL