siomiz / SoftEtherVPN

A Docker Automated Build Repository for SoftEther VPN
https://hub.docker.com/r/siomiz/softethervpn/
MIT License
460 stars 176 forks source link

How to define -e HPW in docker-compose file #66

Closed kamalpanhwar closed 5 years ago

kamalpanhwar commented 5 years ago

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 5 years ago

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

kamalpanhwar commented 5 years ago

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

environment:
   SPW:yourpassword
   HPW:yourpassword

Thanks.