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
|
|
@ -214,7 +214,7 @@ docker-compose down
|
|||
### Docker Configuration
|
||||
|
||||
The `docker-compose.yml` mounts the following volumes:
|
||||
- `./config.yaml` → `/app/config.yaml` (read-only)
|
||||
- `./config.yaml` → `/app/config.yaml` (must be writable — the UI mutates it)
|
||||
- `./downloads` → `/app/downloads` (media files)
|
||||
- `./data` → `/app/data` (SQLite DB, scheduler DB/config — survives upgrades)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ services:
|
|||
volumes:
|
||||
- ./downloads:/app/downloads
|
||||
- ./data:/app/data
|
||||
- ./config.yaml:/app/config.yaml:ro
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue