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
8 changes: 8 additions & 0 deletions 2.x/docker-compose/segmented/core/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
services:
core:
logging:
driver: journald
options:
tag: "defguard-core"
image: ghcr.io/defguard/defguard:2
environment:
DEFGUARD_DB_HOST: db
Expand All @@ -16,6 +20,10 @@ services:
- "8000:8000"

db:
logging:
driver: journald
options:
tag: "defguard-db"
image: postgres:18-alpine
environment:
# Make sure to change these credentials in production!
Expand Down
4 changes: 4 additions & 0 deletions 2.x/docker-compose/segmented/edge/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
services:
edge:
logging:
driver: journald
options:
tag: "defguard-edge"
image: ghcr.io/defguard/defguard-proxy:2
restart: unless-stopped
container_name: "defguard-proxy"
Expand Down
4 changes: 4 additions & 0 deletions 2.x/docker-compose/segmented/gateway/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
services:
gateway:
logging:
driver: journald
options:
tag: "defguard-gateway"
image: ghcr.io/defguard/gateway:2
restart: unless-stopped
container_name: "defguard-gateway"
Expand Down
16 changes: 16 additions & 0 deletions docker-compose2.0/docker-compose.setup.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
services:
core:
restart: unless-stopped
logging:
driver: journald
options:
tag: "defguard-core"
image: ghcr.io/defguard/defguard:${DEFGUARD_CORE_TAG:?DEFGUARD_CORE_TAG is required}
env_file: .env
environment:
Expand All @@ -17,6 +21,10 @@ services:

edge:
restart: unless-stopped
logging:
driver: journald
options:
tag: "defguard-edge"
image: ghcr.io/defguard/defguard-proxy:${DEFGUARD_PROXY_TAG:?DEFGUARD_PROXY_TAG is required}
env_file: .env
volumes:
Expand All @@ -28,6 +36,10 @@ services:

gateway:
restart: unless-stopped
logging:
driver: journald
options:
tag: "defguard-gateway"
image: ghcr.io/defguard/gateway:${DEFGUARD_GATEWAY_TAG:?DEFGUARD_GATEWAY_TAG is required}
env_file: .env
cap_add:
Expand All @@ -42,6 +54,10 @@ services:

db:
restart: unless-stopped
logging:
driver: journald
options:
tag: "defguard-db"
image: postgres:18-alpine
env_file: .env
volumes:
Expand Down
16 changes: 16 additions & 0 deletions docker-compose2.0/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
services:
core:
logging:
driver: journald
options:
tag: "defguard-core"
image: ghcr.io/defguard/defguard:2
environment:
DEFGUARD_COOKIE_INSECURE: "true"
Expand All @@ -18,6 +22,10 @@ services:
- "8000:8000"

edge1:
logging:
driver: journald
options:
tag: "defguard-edge1"
image: ghcr.io/defguard/defguard-proxy:2
volumes:
- ./.volumes/certs2.0/edge1:/etc/defguard/certs
Expand All @@ -27,6 +35,10 @@ services:
- "443:443"

gateway1:
logging:
driver: journald
options:
tag: "defguard-gateway1"
image: ghcr.io/defguard/gateway:2
cap_add:
- NET_ADMIN
Expand All @@ -39,6 +51,10 @@ services:
HEALTH_PORT: 55003

db:
logging:
driver: journald
options:
tag: "defguard-db"
image: postgres:18-alpine
environment:
POSTGRES_DB: defguard
Expand Down
20 changes: 20 additions & 0 deletions ova/files/docker-compose.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ services:
core:
restart: unless-stopped
profiles: [core]
logging:
driver: journald
options:
tag: "defguard-core"
image: ghcr.io/defguard/defguard:__DEFGUARD_CORE_TAG__
env_file: .env
environment:
Expand All @@ -19,6 +23,10 @@ services:
edge:
restart: unless-stopped
profiles: [edge]
logging:
driver: journald
options:
tag: "defguard-edge"
image: ghcr.io/defguard/defguard-proxy:__DEFGUARD_PROXY_TAG__
volumes:
- ./.volumes/certs/edge:/etc/defguard/certs
Expand All @@ -33,6 +41,10 @@ services:
gateway:
restart: unless-stopped
profiles: [gateway]
logging:
driver: journald
options:
tag: "defguard-gateway"
image: ghcr.io/defguard/gateway:__DEFGUARD_GATEWAY_TAG__
cap_add:
- NET_ADMIN
Expand All @@ -47,6 +59,10 @@ services:
image: louislam/dockge:1
restart: unless-stopped
profiles: [dockge]
logging:
driver: journald
options:
tag: "defguard-dockge"
ports:
- "5001:5001"
volumes:
Expand All @@ -59,6 +75,10 @@ services:
db:
restart: unless-stopped
profiles: [core]
logging:
driver: journald
options:
tag: "defguard-db"
image: postgres:18-alpine
env_file: .env
volumes:
Expand Down
Loading