11services :
22 core :
3- image : ghcr.io/defguard/defguard:2.0.0-alpha1
3+ image : ghcr.io/defguard/defguard:2.0.0-alpha2
44 environment :
55 DEFGUARD_COOKIE_INSECURE : " true"
66 DEFGUARD_SECRET_KEY : defguard-secret-key-defguard-secret-key-defguard-secret-key-defguard-secret-key
@@ -12,94 +12,39 @@ services:
1212 DEFGUARD_DB_USER : defguard
1313 DEFGUARD_DB_PASSWORD : defguard
1414 DEFGUARD_DB_NAME : defguard
15- RUST_BACKTRACE : 1
15+ DEFGUARD_ADOPT_EDGE : " edge1:50051"
16+ DEFGUARD_ADOPT_GATEWAY : " gateway1:50066"
1617 depends_on :
1718 - db
19+ - gateway1
20+ - edge1
1821 ports :
1922 - " 8000:8000"
2023
2124 edge1 :
22- image : ghcr.io/defguard/defguard-proxy:2.0.0-alpha1
25+ image : ghcr.io/defguard/defguard-proxy:2.0.0-alpha2
2326 volumes :
24- - ./.volumes/certs2.0-ha/edge1:/etc/defguard/certs
25- depends_on :
26- - core
27-
28- edge2 :
29- image : ghcr.io/defguard/defguard-proxy:2.0.0-alpha1
30- volumes :
31- - ./.volumes/certs2.0-ha/edge2:/etc/defguard/certs
32- depends_on :
33- - core
34-
35- edge-lb :
36- image : nginx:1.25-alpine
37- depends_on :
38- - edge1
39- - edge2
27+ - ./.volumes/certs2.0/edge1:/etc/defguard/certs
4028 ports :
4129 - " 8080:8080"
42- volumes :
43- - ./nginx/edge.conf:/etc/nginx/conf.d/default.conf:ro
4430
4531 gateway1 :
46- image : ghcr.io/defguard/gateway:2.0.0-alpha1
47- depends_on :
48- - core
32+ image : ghcr.io/defguard/gateway:2.0.0-alpha2
4933 cap_add :
5034 - NET_ADMIN
5135 volumes :
52- - ./.volumes/certs2.0-ha/gateway1:/etc/defguard/certs
53- environment :
54- DEFGUARD_STATS_PERIOD : 10
55- HEALTH_PORT : 55003
56-
57- gateway2 :
58- image : ghcr.io/defguard/gateway:2.0.0-alpha1
59- depends_on :
60- - core
61- cap_add :
62- - NET_ADMIN
63- volumes :
64- - ./.volumes/certs2.0-ha/gateway2:/etc/defguard/certs
36+ - ./.volumes/certs2.0/gateway1:/etc/defguard/certs
37+ ports :
38+ - " 51820:51820/udp"
6539 environment :
6640 DEFGUARD_STATS_PERIOD : 10
6741 HEALTH_PORT : 55003
6842
69- gateway-lb :
70- image : envoyproxy/envoy:v1.33-latest
71- command : ["envoy", "-c", "/etc/envoy/envoy.yaml", "-l", "debug"]
72- ports :
73- - " 50051:50051/udp"
74- - " 9901:9901"
75- volumes :
76- - ./envoy/envoy.yaml:/etc/envoy/envoy.yaml:ro
77- depends_on :
78- - gateway1
79- - gateway2
80-
81- # NGINX can be used for LB but not HA since it does not support healthchecks
82- # gateway-lb-nginx:
83- # image: nginx:1.25-alpine
84- # command:
85- # - /bin/sh
86- # - -ec
87- # - until getent hosts gateway1 gateway2 >/dev/null 2>&1; do sleep 0.2; done; exec nginx -g 'daemon off;'
88- # ports:
89- # - "50051:50051/udp"
90- # volumes:
91- # - ./nginx/gateway-lb.conf:/etc/nginx/nginx.conf:ro
92- # depends_on:
93- # - gateway1
94- # - gateway2
95-
9643 db :
9744 image : postgres:18-alpine
9845 environment :
9946 POSTGRES_DB : defguard
10047 POSTGRES_USER : defguard
10148 POSTGRES_PASSWORD : defguard
10249 volumes :
103- - ./.volumes/db2.0-ha:/var/lib/postgresql
104- ports :
105- - " 5432:5432"
50+ - ./.volumes/db2.0:/var/lib/postgresql
0 commit comments