siomiz/SoftEtherVPN

How to define -e HPW in docker-compose file

kamalpanhwar opened this issue · 2 comments

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.

Refer to the official Compose file spec:
https://docs.docker.com/compose/compose-file/#environment

Great, I added following lines in my docker-compose.yml file and it worked

environment:
   SPW:yourpassword
   HPW:yourpassword

Thanks.