Re-add deployment as a regular directory
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Use userspace wireguard implementation, useful on systems without native wireguard support
|
||||
# Set to 0/1
|
||||
DEFGUARD_USERSPACE=0
|
||||
# Defguard GRPC URL, e.g.: defguard-grpc.mycompany.com
|
||||
DEFGUARD_GRPC_URL=<DEFGUARD_GRPC_URL>
|
||||
# Token from Defguard app to secure gRPC connection, available on network page.
|
||||
DEFGUARD_TOKEN=<DEFGUARD_TOKEN>
|
||||
# Defines how often (in seconds) should interface statistics be sent to Defguard server
|
||||
DEFGUARD_STATS_PERIOD=30
|
||||
@@ -0,0 +1,22 @@
|
||||
version: "3"
|
||||
services:
|
||||
gateway:
|
||||
image: ghcr.io/defguard/gateway:latest
|
||||
restart: unless-stopped
|
||||
network_mode: "host"
|
||||
environment:
|
||||
# load variables from .env file
|
||||
- DEFGUARD_GRPC_URL
|
||||
- DEFGUARD_TOKEN
|
||||
- DEFGUARD_STATS_PERIOD
|
||||
- RUST_LOG=debug
|
||||
# SSL setup guide: https://defguard.gitbook.io/defguard/features/setting-up-your-instance/docker-compose#ssl-setup
|
||||
# - DEFGUARD_GRPC_CA: /ssl/defguard-ca.pem
|
||||
ports:
|
||||
# wireguard endpoint
|
||||
- "50051:50051/udp"
|
||||
#volumes:
|
||||
# SSL setup guide: https://defguard.gitbook.io/defguard/features/setting-up-your-instance/docker-compose#ssl-setup
|
||||
#- ./.volumes/ssl:/ssl
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
Reference in New Issue
Block a user