I manually, recursively changed the owner of all the website files back to nobody:users through ssh
Span up a linuxserver/nginx docker and mapped Volumes : /srv/dev-disk-by-label-storage/Websites:/config/www
Set two environment variables (you…
Ah - OK.
Pulled the linuxserver nginx image with docker pull linuxserver/nginx
Fired up a docker with option Volumes: /srv/dev-disk-by-label-storage/Websites:/config/www
Now I can browse to my website and it works very well (couple of odd PHP issues but…
output of id www-data is uid=33(www-data) gid=33(www-data) groups=33(www-data)
output of docker exec -it nginxcontainer id www-data is uid=33(www-data) gid=33(www-data) groups=33(www-data)
So, the same
Is there anything I should be doing with the container…
Thanks for your help so far!
So I can spin up an nginx and a php docker
It serves files from /usr/share/nginx/html
I have websites stored in folders within:
So, I spin up a docker with the volumes mapped:
Thank you for your answers - really appreciate them. I'm getting to grips with it.
We use docker for our website at work so this is really useful experience.
I was experimenting with Cockpit - at first glance, this seems much clearer than Portainer.
So this is what I've done.
- Changed OMV Web-admin port to 81
- Installed Docker from OMV-Extras Panel
- Enabled SSH
- Logged into server using Putty
- Run 'docker ps'
- This tells me there are no docker containers
- Run 'docker run --name mynginx1 -p 80:80 -d nginx'