reddit-media-collector/docker-compose.yml
Richard Nixon c0dffb39a4 fix(compose): mount config.yaml writable so UI can persist changes
The UI mutates /app/config.yaml on every add/remove of subreddits, users
or blacklist entries. With the :ro flag the write fails with OSError and
the route returns 500 (the frontend then shows "Erro de conexão"
because the plain-text 500 body is not JSON-parseable).

Drop :ro from both compose files and from the README volumes table.
2026-05-17 17:12:01 +01:00

17 lines
496 B
YAML

services:
collector:
build: .
container_name: reddit-media-collector
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- ./downloads:/app/downloads
- ./data:/app/data
# config.yaml must be writable — the UI mutates it on add/remove of
# subreddits, users and blacklist entries.
- ./config.yaml:/app/config.yaml
environment:
- RMC_TIMEZONE=UTC
- RMC_DOWNLOAD_DIR=/app/downloads
- RMC_DB_PATH=/app/data/media.db