-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker-compose.yaml
61 lines (58 loc) · 1.69 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
services:
core:
image: ghcr.io/defguard/defguard:latest
build:
context: .
dockerfile: Dockerfile
environment:
DEFGUARD_COOKIE_INSECURE: "true"
DEFGUARD_SECRET_KEY: aa5a506b11d719dd7170f57f5d9947faf8eb0bc2be1325e42aa0237c3dcfd26456e73dff9eef3b12c7bcf8711b45e3e703d8e21ee1c08520f5e12e3f5772da94
DEFGUARD_AUTH_SECRET: defguard-auth-secret
DEFGUARD_GATEWAY_SECRET: defguard-gateway-secret
DEFGUARD_YUBIBRIDGE_SECRET: defguard-yubibridge-secret
DEFGUARD_DB_HOST: db
DEFGUARD_DB_PORT: 5432
DEFGUARD_DB_USER: defguard
DEFGUARD_DB_PASSWORD: defguard
DEFGUARD_DB_NAME: defguard
DEFGUARD_URL: http://localhost:8000
RUST_BACKTRACE: 1
ports:
# rest api
- "8000:8000"
# grpc
- "50055:50055"
depends_on:
- db
gateway:
image: ghcr.io/defguard/gateway:latest
environment:
DEFGUARD_GRPC_URL: http://core:50055
DEFGUARD_STATS_PERIOD: 60
DEFGUARD_TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEZWZHdWFyZCIsInN1YiI6IlRlc3ROZXQiLCJjbGllbnRfaWQiOiIiLCJleHAiOjU5NjE3NDcwNzYsIm5iZiI6MTY2Njc3OTc4MSwicm9sZXMiOltdfQ.uEUMnw_gO23W0K2q3N1lToeP0D2zAY1swr8N-84sRHA
RUST_LOG: debug
ports:
# WireGuard endpoint
- "50051:50051/udp"
depends_on:
- core
cap_add:
- NET_ADMIN
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: defguard
POSTGRES_USER: defguard
POSTGRES_PASSWORD: defguard
volumes:
- ./.volumes/db:/var/lib/postgresql/data
ports:
- "5432:5432"
device:
build:
context: .
dockerfile: Dockerfile.device
depends_on:
- gateway
cap_add:
- NET_ADMIN