Create persistent volume in docker-compose

#1
Hello everyone, how are you? I hope so, I'm new to openlitespeed and I've already managed to create its image in the Dockerfile with the correct files and I've also uploaded some environments with Docker Compose, but I had some problems when trying to create a persistent volume, such as the wp-content directory. /, I put it in my compose so it can create and map the directory but on the host it ends up creating everything with root:root and in the container it's different and that could probably be what's going wrong, follow my Dockerfile and Compose below
 

Attachments

#5
I really appreciate the help, I managed to solve it by adjusting some things in the Dockerfile, in the entrypoint.sh script and in Docker compose, it was just the volume mapping being done wrong and causing the folder on the host to be empty, leaving the folder in the container also empty
 
Top