Closed nFrechen closed 6 years ago
Ok, it works if I put the WIKI_PATH
inside the persistent folder like so:
"WIKI_PATH": "/home/wiki/data/repo"
This way docker can create the folder /home/wiki/data
and the realms worker can create /home/wiki/data/repo
.
The data
folder only needs to have the right permissions. Ich changed it this way:
chown 1000:1000 ./realms-data
Since 1000
is the userid of wiki
inside the container this works. It might display a different user name on the host.
I try to use realms with docker and store the persistent data on the host.
If I do it following your privided docker-compose.yml file like the following:
The folder
/home/wiki/data
stays empty. I found the .md files inside the container in/tmp/wiki
.Then I tried to provide a
realms-wiki.json
to set the file path to/home/wiki/data
:with a json file like this:
This time the container doesn't start properly becasue
Worker failed to boot.
:Apparently it doesn't work, because
File exists: '/home/wiki/data'
. I tried to use different folders (for example/home/wiki/wikidata
) that ar not created in theDockerfile
. This works and I find the files inside this folder inside the container. But once I define them as volumes indocker-compose.yml
I get theFile exists: '/home/wiki/wikidata'
Error again.How do I do it the right way?