How to define -e HPW in docker-compose file
kamalpanhwar opened this issue · 2 comments
kamalpanhwar commented
I am using this Dockerfile in docker-compose.yml but how do I define passwords in this file or Dockerfile, so I can access server programmatically.
siomiz commented
Refer to the official Compose file spec:
https://docs.docker.com/compose/compose-file/#environment
kamalpanhwar commented
Great, I added following lines in my docker-compose.yml file and it worked
environment:
SPW:yourpassword
HPW:yourpassword
Thanks.