Error with volume not mounting docker compose
not sure why but my volume isnt mounting for my docker compose file. keeps saying error file or directory not found...
failed to mount local volume: mount /home/md89/Documents/Github/phptest/:/var/lib/docker/volumes/phptest_app/_data, flags: 0x1000: no such file or directory
here is the docker compose file
4 Replies
Do you have any special needs for your mount? If not, it'd be easier to simply do:
I usually throw in a pair of curly braces just in case, as in the past at least this would cause issues sometimes:
It's the same thing since YAML is basically JSON.
I did change volumes and removed them completely and it did complete the process but caddy didn't work
The local host kept saying "connection reset"
Are you trying to mount your project's folder to /var/www/html? If so, you can use a simple bind mount:
You can also omit the image tag if you are using latest since that is the default. Although you shouldn't, always pick a specific version and stick to it until you need to update.
Yeah that was the change that worked
Just php isn't loading on caddy
Might try apache next