boringproxy/docker/client
2022-02-20 14:40:56 +02:00
..
examples update to reflect v0.9 changes 2022-02-20 14:40:56 +02:00
docker-compose.yml update to reflect v0.9 changes 2022-02-20 14:40:56 +02:00
prebuild.yml update to reflect v0.9 changes 2022-02-20 14:40:56 +02:00
README.md update to reflect v0.9 changes 2022-02-20 14:40:56 +02:00
source.yml added docker examples 2022-02-18 08:52:52 +02:00

Files to run client using docker

Update compose file

Edit docker-compose.yml and change the following under commands for service boringproxy

  • bp.example.com: your admin domain
  • your-user-token: token generated by your server
  • your-email-address: the email address to register with Let's Encrypt

certmagic

The certmagic volume is used to store certificates. This directory must also be passed to the container with the -cert-dir command.

==If you make changes to this, make sure that the data in certmagic is persistent, otherwise new certificates will be generated every time the container is started. This can result in triggering the rate limits for Let's Encrypt==

/etc/ssl/certs

Alpine doesn't include ca-certificates in the docker base image. You can add your OS ca-certificates to the docker container by linking your local certs directory to the image

  • /etc/ssl/certs/:/etc/ssl/certs/:ro

Build image from source and run server in docker

You can build the image from source. This requires that you clone the GitHub repo and start docker using the compose command below:

docker-compose -f docker-compose.yml -f source.yml up -d

Download prebuild image and run server in docker

If you don't want to build the image, a prebuild image can be downloaded from GitHub. Start docker using the compose commands below to download the image and start the container.

docker-compose -f docker-compose.yml -f prebuild.yml up -d