Hello MRiza,
I try to use your docker file (thanks a lot) with my Debian server but i met some difficulties :
1 : I added a specific user
As root,
useradd -d /home/processwire -m -s /bin/bash processwire
usermod -aG docker processwire
2 : I built a Docker image
As processwire user,
Download the project files to /home/processwire: wget -c https://github.com/mriza/docker-processwire/archive/v0.2.tar.gz
Extract: tar xvzf v0.2.tar.gz
Change to the new directory: cd docker-processwire-v0.2/
Build the image : "docker build -t processwire ."
3 : I wrote my docker-compose file
vi /home/processwire/docker-compose.yml
#******************* docker-compose.yml file ************
processwire:
image: processwire
container_name: processwire
restart: always
volumes:
- /home/processwire/docker-processwire-0.2/pw:/var/www/html
ports:
- "82:80"
#******************* docker-compose.yml file ************
4 : I ran Docker application
As processwire user and from /home/processwire, I ran "docker-compose up -d". Processwire website is now live on port 82, and I can access the server IP address (http://192.168.2.2:82 in my case). But when I try to install the "Site Installation Profile" (Default, intermediate edition) ,it fails (http://192.168.2.2:82/install.php) :
File system is not writable by this installer. Before continuing, please rename '/site-default' to '/site'
I understand that a user in my Docker Application doesn't have write permissions for my external directory /home/processwire/docker-processwire-0.2/pw, but I don't see who...
Any ideas ?
Joël, first steps in the field of ProcessWire CMS
ps. Sorry for my bad english, I 'm French