Relative Content

Tag Archive for dockerdocker-compose

Undefined voulme with docker compose

I am a beginner in docker and docker-compose technology as I’m trying to run the command (docker compose build) it throws the error of ( /vagrant/vprofile-project/docker-compose.yml: version is obsolete
service “vprodb” refers to undefined volume vprodata: invalid compose project )

Docker container in host network is not reachable on ports

Problem I am running a docker container (snapcast server) and need to run it in host mode. Before I ran it in host mode I forwarded ports 1704, 1705 and 1780 (where the Web UI is reachable on port 1780) in my docker-compose.yml and everything worked when doing it like that. When I changed my […]

How to work with Docker Compose secrets securely

I hope you are well. I have some questions about how Docker secrets can make the use of credentials in containers more secure and how to work with them correctly, given that their content is exposed in /run/secrets and can be easily accessed with cat both inside and outside the containers. Additionally, to run as a user with minimal permissions inside the container, I need to keep the permissions of the secret files open on the host machine, because if I set them as root-only, the non-root user inside the container will not be able to read their content and the application will not be able to work with the information.