Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions 2.x/docker-compose/segmented/core/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
services:
core:
image: ghcr.io/defguard/defguard:2
environment:
DEFGUARD_DB_HOST: db
DEFGUARD_DB_PORT: 5432

# Make sure to change these credentials in production!
DEFGUARD_DB_USER: defguard
DEFGUARD_DB_PASSWORD: defguard
DEFGUARD_DB_NAME: defguard
depends_on:
- db
ports:
# HTTP port for the web UI
- "8000:8000"

db:
image: postgres:18-alpine
environment:
# Make sure to change these credentials in production!
POSTGRES_DB: defguard
POSTGRES_USER: defguard
POSTGRES_PASSWORD: defguard
volumes:
- ./.volumes/db:/var/lib/postgresql
14 changes: 14 additions & 0 deletions 2.x/docker-compose/segmented/edge/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
edge:
image: ghcr.io/defguard/defguard-proxy:2
restart: unless-stopped
container_name: "defguard-proxy"
ports:
# gRPC port for the Core to connect to
- "50051:50051"
# HTTP port for the web UI
- "8080:8080"
# HTTPS if you want to use the built-in TLS termination of the Proxy https://docs.defguard.net/tutorials/initial-setup-wizard-setting-up-from-scratch#configure-ssl-for-edge
# - "443:443"
volumes:
- ./.volumes/certs/edge:/etc/defguard/certs
10 changes: 10 additions & 0 deletions 2.x/docker-compose/segmented/gateway/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
gateway:
image: ghcr.io/defguard/gateway:2
restart: unless-stopped
container_name: "defguard-gateway"
network_mode: "host"
cap_add:
- NET_ADMIN
volumes:
- ./.volumes/certs/gateway:/etc/defguard/certs