Skip to content

Commit 2bc3932

Browse files
authored
Add docker compose segmented for 2 (#154)
1 parent a5287c8 commit 2bc3932

3 files changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
services:
2+
core:
3+
image: ghcr.io/defguard/defguard:2
4+
environment:
5+
DEFGUARD_DB_HOST: db
6+
DEFGUARD_DB_PORT: 5432
7+
8+
# Make sure to change these credentials in production!
9+
DEFGUARD_DB_USER: defguard
10+
DEFGUARD_DB_PASSWORD: defguard
11+
DEFGUARD_DB_NAME: defguard
12+
depends_on:
13+
- db
14+
ports:
15+
# HTTP port for the web UI
16+
- "8000:8000"
17+
18+
db:
19+
image: postgres:18-alpine
20+
environment:
21+
# Make sure to change these credentials in production!
22+
POSTGRES_DB: defguard
23+
POSTGRES_USER: defguard
24+
POSTGRES_PASSWORD: defguard
25+
volumes:
26+
- ./.volumes/db:/var/lib/postgresql
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
services:
2+
edge:
3+
image: ghcr.io/defguard/defguard-proxy:2
4+
restart: unless-stopped
5+
container_name: "defguard-proxy"
6+
ports:
7+
# gRPC port for the Core to connect to
8+
- "50051:50051"
9+
# HTTP port for the web UI
10+
- "8080:8080"
11+
# 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
12+
# - "443:443"
13+
volumes:
14+
- ./.volumes/certs/edge:/etc/defguard/certs
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
services:
2+
gateway:
3+
image: ghcr.io/defguard/gateway:2
4+
restart: unless-stopped
5+
container_name: "defguard-gateway"
6+
network_mode: "host"
7+
cap_add:
8+
- NET_ADMIN
9+
volumes:
10+
- ./.volumes/certs/gateway:/etc/defguard/certs

0 commit comments

Comments
 (0)