Docker Compose

Please not that docker-compose based configuration has been prepared with one-line quick deployment. It can be modified or adopted for a custom deployment, but it may be easier to do the one-line deployment, so that the setup will generate all configs for your (compose & env) and them change/adopt them.

If you want to customize your Docker installation manually, we prepared a git repository with a base docker-compose configuration. Clone it:

git clone https://github.com/DefGuard/deployment.git && cd deployment/docker-compose

In docker-compose directory you'll find a template env file called .env.template. Copy it:

cd docker-compose
cp .env.template .env

And then edit the values in .env file to setup your secrets. Those should be kept... well, secret. For more info on available configuration options see Configuration.

You can generate random strings for secrets with e.g.:

openssl rand -base64 55 | tr -d "=+/" | tr -d '\n' | cut -c1-63

Last updated