dot env can be used to input text dot env (.env) `db_password=myNotSoSecurePassword` compose.yaml `..... MARIADB_PASSWORD=${db_password}` $ docker compose --env-file /path/.env up It''s not as secure as secrets but atleast better than password inside yaml file
Catch up on the latest developer news and tutorials at TechRepublic: www.techrepublic.com/topic/developer/?.com&
What is the alternative for standalone docker?
No there is no alternative for standalone Docker it's available for Docker swarm only.. Docker docs mentions this
@@сойка-и8й That is absolutely false. You can use secrets in a Compose file. Docker docs mentions this
dot env can be used to input text
dot env (.env)
`db_password=myNotSoSecurePassword`
compose.yaml
`..... MARIADB_PASSWORD=${db_password}`
$ docker compose --env-file /path/.env up
It''s not as secure as secrets but atleast better than password inside yaml file
The alternative would be named volumes I presume