Docker secrets and Compose compatibility issue
There's no proper Docker secrets support on docker-compose
.
According to a comment by a contributor on a github issue,
The secrets implementation in docker-compose is a mock implementation using host binds. The actual secrets feature is only available to Swarm services, which can be deployed using docker stack deploy.
Those warnings are valid for any version of docker-compose.
(source)