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.
This commit is contained in:
parent
562b8697ca
commit
c0dffb39a4
3 changed files with 7 additions and 3 deletions
|
|
@ -14,7 +14,9 @@ services:
|
|||
volumes:
|
||||
- /volume1/docker/reddit-media-collector/downloads:/app/downloads
|
||||
- /volume1/docker/reddit-media-collector/data:/app/data
|
||||
- /volume1/docker/reddit-media-collector/config.yaml:/app/config.yaml:ro
|
||||
# NOTE: config.yaml must be writable — the UI mutates it on add/remove
|
||||
# of subreddits, users and blacklist entries. Mounting :ro causes 500.
|
||||
- /volume1/docker/reddit-media-collector/config.yaml:/app/config.yaml
|
||||
environment:
|
||||
- RMC_TIMEZONE=America/Sao_Paulo
|
||||
- RMC_DOWNLOAD_DIR=/app/downloads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue