37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
services:
|
|
opds-from-rss:
|
|
build: .
|
|
image: opds-from-rss:latest
|
|
container_name: opds-from-rss
|
|
restart: unless-stopped
|
|
|
|
# Secrets (the FreshRSS API password and the catalogue password digest) come
|
|
# from .env rather than from config.json, so the mounted file stays safe to
|
|
# keep in version control. Optional, so that `docker compose config` and a
|
|
# first `up` work before the file exists -- configuration validation then
|
|
# reports the missing variable by name.
|
|
env_file:
|
|
- path: .env
|
|
required: false
|
|
|
|
volumes:
|
|
- ./config.json:/config/config.json:ro
|
|
|
|
# Published on loopback only. Put a TLS-terminating reverse proxy (or a
|
|
# tunnel) in front, because HTTP Basic credentials are only base64-encoded.
|
|
# To reach it from the LAN instead, publish "8080:8080" deliberately.
|
|
ports:
|
|
- "127.0.0.1:8080:8080"
|
|
|
|
# The server never writes to disk, so the container filesystem can be
|
|
# read-only. /tmp is mounted only because some Python internals expect it
|
|
# to exist; nothing here writes to it.
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
cap_drop:
|
|
- ALL
|