-
Steps to reproduceCopy the docker compose file with this config and run it. ---
version: '3.3'
services:
komga:
image: gotson/komga
container_name: komga
volumes:
- ./config:/config
- ./data:/data
ports:
- 25600:25600
user: ${PUID}:${PGID}
# remove the whole environment section if you don't need it
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
# - <ENV_VAR>=<extra configuration>
restart: unless-stoppedExpected behaviorThe container should be able to create files inside the config and data folders. Actual behaviorThe data and config folders are created but they are empty and the docker logs shows error (check log).
LogsLogs attached as a file: Komga version1.24.3 Operating systemopenmediavault 7.7 (Based on Debian 12) Installation methodDocker Other detailsI've looked at other closed issues with similar errors but I wasn't able to implement a fix by myself. I've also checked the Parameters section in the docs about environment variables and the FAQ. I also tried using the following docker-compose config, with the same result.
---
version: '3.3'
services:
komga:
image: gotson/komga
container_name: komga
volumes:
- type: bind
source: ./config
target: /config
- type: bind
source: ./data
target: /data
ports:
- 25600:25600
user: ${PUID}:${PGID}
# remove the whole environment section if you don't need it
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
# - <ENV_VAR>=<extra configuration>
restart: unless-stopped
root@openmediavault:/media/Datos/Contenedores/appdata/komga# ls -la
total 32
drwxrwx--- 4 root users 7 abr 14 04:52 .
drwxrwsr-x 16 root users 17 abr 14 04:39 ..
-rw-rw---- 1 root users 178 abr 14 04:52 compose.override.yml
drwxr-xr-x 2 root root 2 abr 14 04:52 config
drwxr-xr-x 2 root root 2 abr 14 04:52 data
-rw-rw---- 1 root users 199 abr 14 04:52 komga.env
-rw-rw---- 1 root users 727 abr 14 04:52 komga.ymlAcknowledgements
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
you need to make sure the user running docker has the rights on the |
Beta Was this translation helpful? Give feedback.



it's a docker thing, nothing to do with Komga. That's just how docker behaves. You didn't follow the Komga template that uses explicit bind syntax, instead you used the short syntax which has a side effect.