So Honeygain has finally arrived as a Docker container and this article will give you everything you need to build your own docker-compose YAML file for faster deployments.
You can see the docs provided by the Honeygain devs on the matter here:
However, they do not provide a nice way to deploy time and again from a docker-compose file, scroll down for a template! At the time of writing, you are permitted to run the service on two devices per public IP. Unfortunately, the docker image doesn’t currently support the content delivery feature
Running the Honeygain docker image (without docker-compose)
If oyu just want to run the container here are the steps to do so, provided that you have a docker environment ready to go:
- Pull the Docker image
docker pull honeygain/honeygain
docker run honeygain/honeygain -tou-get
3. Start the Honeygain Docker container
docker run honeygain/honeygain -tou-accept -email ACCOUNT_EMAIL -pass ACCOUNT_PASSWORD -device DEVICE_NAME
Replace ACCOUNT_EMAIL with your Honeygain account email
Replace ACCOUNT_PASSWORD with your Honeygain account password
Replace DEVICE_NAME with a name that you would like to give to your Docker container. This name will be visible on the Dashboard.
NOTE: Use different DEVICE_NAME for every container that you create.
Honeygain docker-compose YAML example
Now here is how an example of a docker-compose file for the Honeygain container. Please note that you will still need to change your device name between deployments.
version: '3' services: honeygain: container_name: honeygain image: honeygain/honeygain command: -tou-accept -email firstname.lastname@example.org -pass mylamepassword -device sweethoney01 restart: unless-stopped
Change the email, password and device name to suit! And be careful not to publish your compose file with real credentials to any public code repository.
And here is how to run your copose file in detached mode (fromt he direcotry where you YAML file is stored):
docker-compose run -d