In order to summarise the successful process (for me) in case others come a-searching…
Disclaimer
I can’t advise on setting permissions properly
I have no advice regarding configuring dokuwiki itself after install
Caveat emptor!!!
Aim: To install dokuwiki into a Docker container as at this time there is not an official TrueNAS Docker solution for Dokuwiki, and this was the final piece of the jigsaw for me to upgrading from Dragonfish to Electric Eel where I had Dokuwiki running from Truecharts
I used the “Official” Dokuwiki Docker YAML file from here
https://github.com/dokuwiki/docker/blob/main/docker-compose.yml
For me the only element I changed was the last line from
- ./storage:/storage
to
- /mnt/tank/data/dokuwikidata:/storage
where /mnt/tank/data/dokuwikidata is the path to the dataset I had created for this purpose. Your path will be different
The main issue I had, came down to permissions for this dataset, but once fixed dokuwiki came up nicely.
Because this was a vanilla server I got a blank dokuwiki , but when I redid things, creating a new dataset, and pasted the conf, data, lib folders from my other server into the dataset, and ran the YAML file afresh I got the old dokuwiki site back up again.
This may not be a complete guide but may help another complete idiot to at least get some way there