How to directly mount NFS share/volume in container using docker compose v3

After discovering that this is massively undocumented,here’s the correct way to mount a NFS volume using stack and docker compose. The most important thing is that you need to be using version: “3.2” or higher. You will have strange and un-obvious errors if you don’t. The second issue is that volumes are not automatically updated … Read more

What’s the difference between a stack file and a Compose file?

Conceptually, both files serve the same purpose – deployment and configuration of your containers on docker engines. Docker-compose tool was created first and its purpose is “for defining and running multi-container Docker applications” on a single docker engine. (see docker compose overview ) You use docker-compose up to create/update your containers, networks, volumes and so … Read more

When to use Docker-Compose and when to use Docker-Swarm

It will probably help to start with a few definitions: docker-compose: Command used to configure and manage a group of related containers. It is a frontend to the same api’s used by the docker cli, so you can reproduce it’s behavior with commands like docker run. docker-compose.yml: Definition file for a group of containers, used … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)