Comment on page
Remember to clone Defguard repository recursively (with protos):
Using docker-compose you can setup a simple stack with:
- database (postgres)
- VPN gateway
- device connected to the gateway
This way you'll have some live stats data to work with.
To do so follow these steps:
- 1.Migrate database and insert test network and device:
docker-compose run core init-dev-env
- 2.Run the application:
To run backend without docker, you'll need:
- postgres database
- protobuf compiler (
- environment variables set
Run postgres with:
docker-compose up -d db
You'll find environment variables in .env file. Source them however you like (we recommend https://direnv.net/). Once that's done, you can run backend with:
The domain used to access the frontend instance has to match with the cookie domain address (which can be set using DEFGUARD_COOKIE_DOMAIN).
For example, if the cookie domain is set to the default value of localhost, you should access frontend using localhost domain.