Skip to content

Commit

Permalink
GITBOOK-318: change request with no subject merged in GitBook
Browse files Browse the repository at this point in the history
  • Loading branch information
defguard-community authored and gitbook-bot committed Jan 13, 2025
1 parent 92b7379 commit 40d99ab
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions for-developers/dev-env-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ docker compose run core init-dev-env
docker compose up
```

To use different versions of Defguard images, edit _docker-compose.yaml_ file, replacing `image:` sections.
Consult [Defguard Package](https://github.com/DefGuard/defguard/pkgs/container/defguard) versions to browse for available image tags.
### Switching images

To use different versions of Defguard images, edit _docker-compose.yaml_ file, replacing `image:` sections. Consult [Defguard Package](https://github.com/DefGuard/defguard/pkgs/container/defguard) versions to browse for available image tags.

For example, to use current development version, change this section in _docker-compose.yaml_:

Expand All @@ -41,6 +42,20 @@ core:
image: ghcr.io/defguard/defguard:dev
```

### Running local code

To run local code you will need to build core image from local changes:

```bash
docker compose build core
```

Then just run the compose normally.

```bash
docker compose up
```

## Cargo

To run Defguard Core without Docker, you'll need:
Expand Down Expand Up @@ -79,8 +94,6 @@ popd

You'll find environment variables in _.env_ file. Source them however you like (we recommend [direnv](https://direnv.net/)).



Once that's done, you can run backend with:

```
Expand All @@ -91,7 +104,6 @@ cargo run

**http://localhost:8000/**


### Minimum required settings

Consult [Configuration](../features/setting-up-your-instance/configuration.md) manual for a list of all available configuration settings.
Expand Down

0 comments on commit 40d99ab

Please sign in to comment.