-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathdocker-compose.ha.yaml
More file actions
84 lines (77 loc) · 2.15 KB
/
docker-compose.ha.yaml
File metadata and controls
84 lines (77 loc) · 2.15 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
core:
image: ghcr.io/defguard/defguard:2.0.0-alpha2
environment:
DEFGUARD_COOKIE_INSECURE: "true"
DEFGUARD_SECRET_KEY: defguard-secret-key-defguard-secret-key-defguard-secret-key-defguard-secret-key
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_ADOPT_EDGE: "edge1:50051"
DEFGUARD_ADOPT_GATEWAY: "gateway1:50066"
depends_on:
- db
- gateway-lb
- edge-lb
ports:
- "8000:8000"
- "8443:443"
edge1:
image: ghcr.io/defguard/defguard-proxy:2.0.0-alpha2
volumes:
- ./.volumes/certs2.0-ha/edge1:/etc/defguard/certs
edge2:
image: ghcr.io/defguard/defguard-proxy:2.0.0-alpha2
volumes:
- ./.volumes/certs2.0-ha/edge2:/etc/defguard/certs
edge-lb:
image: nginx:1.25-alpine
depends_on:
- edge1
- edge2
ports:
- "8080:8080"
volumes:
- ./nginx/edge.conf:/etc/nginx/conf.d/default.conf:ro
gateway1:
image: ghcr.io/defguard/gateway:2.0.0-alpha2
cap_add:
- NET_ADMIN
volumes:
- ./.volumes/certs2.0-ha/gateway1:/etc/defguard/certs
environment:
DEFGUARD_STATS_PERIOD: 10
HEALTH_PORT: 55003
gateway2:
image: ghcr.io/defguard/gateway:2.0.0-alpha2
cap_add:
- NET_ADMIN
volumes:
- ./.volumes/certs2.0-ha/gateway2:/etc/defguard/certs
environment:
DEFGUARD_STATS_PERIOD: 10
HEALTH_PORT: 55003
gateway-lb:
image: envoyproxy/envoy:v1.33-latest
command: ["envoy", "-c", "/etc/envoy/envoy.yaml", "-l", "debug"]
ports:
- "51820:51820/udp"
- "9901:9901"
volumes:
- ./envoy/envoy.yaml:/etc/envoy/envoy.yaml:ro
depends_on:
- gateway1
- gateway2
db:
image: postgres:18-alpine
environment:
POSTGRES_DB: defguard
POSTGRES_USER: defguard
POSTGRES_PASSWORD: defguard
volumes:
- ./.volumes/db2.0-ha:/var/lib/postgresql