Skip to content

Repository files navigation

DevGuard Docker Deployment - WiP

DISCLAIMER: Work in Progress. This repo will change.

Deployment Options

  • Localhost
    • Best for simple initial DevGuard test on localhost.
  • OrbStack
  • Traefik
    • In case you want to make DevGuard accessible from other computers this is the recommended way.

Setup

Clone this repo first.

git clone git@github.com:l3montree-dev/devguard-docker-deployment.git

Guided / Automatic

The easiest way to get started is the interactive setup which let's you pick a deployment option (Localhost, OrbStack, or Traefik). It writes .env and generates the encryption key, the Kratos config and the database init script. Re-running it keeps existing secrets and files.

# 1. Run configuration script
docker compose -f compose.configure.yaml run --rm configure

# 2. Initialize the database
docker compose -f compose.yaml -f compose.setup.yaml up postgresql

# 3. Import the vulnerability database (one time only, takes a few minutes)
docker compose -f compose.yaml --profile vulndb-import run --rm devguard-vulndb-import

Manual

Copy .env.example to .env and edit it, then run the three commands above — the configure script keeps every value that is no longer set to change-me, so it only fills in the gaps and the generated files.

Launch DevGuard

# Launch with Localhost / HTTP
docker compose -f compose.yaml -f compose.localhost.yaml up -d --remove-orphans

# Launch with Reverse Proxy (Traefik)
docker compose -f compose.yaml -f compose.traefik.yaml up -d --remove-orphans

# Launch with Reverse Proxy (OrbStack)
docker compose -f compose.yaml -f compose.orbstack.yaml up -d --remove-orphans

What to Backup

You should perform regular dumps (e.g. using pgdump) of the devguard and kratos databases. Ensure also to store a copy of the app-side encryption key generated during setup.

Reset

Caution

This will remove all volumes and the corresponding data!

docker compose down -v --remove-orphans # after this you need to run the initial setup again

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages