-
-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
80 lines (75 loc) · 1.88 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
80 lines (75 loc) · 1.88 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
services:
core:
image: ghcr.io/defguard/defguard:${IMAGE_TAG}
build:
context: .
dockerfile: Dockerfile
environment:
DEFGUARD_DB_HOST: db
DEFGUARD_DB_PORT: 5432
DEFGUARD_DB_USER: defguard
DEFGUARD_DB_PASSWORD: defguard
DEFGUARD_DB_NAME: defguard
RUST_BACKTRACE: 1
ports:
# REST API
- "8000:8000"
# Default Core GRPC port
- "50055:50055"
depends_on:
- db
gateway:
image: ghcr.io/defguard/gateway:${IMAGE_TAG}
ports:
# WireGuard endpoint
- "50051:50051/udp"
# Default Gateway GRPC port
- "50066:50066"
cap_add:
- NET_ADMIN
edge:
image: ghcr.io/defguard/defguard-proxy:${IMAGE_TAG}
ports:
# REST API
- "8080:8080"
# Default Edge GRPC port
- "50051:50051"
environment:
DEFGUARD_PROXY_GRPC_PORT: 50051
RUST_BACKTRACE: 1
db:
image: postgres:17-alpine
environment:
POSTGRES_DB: defguard
POSTGRES_USER: defguard
POSTGRES_PASSWORD: defguard
volumes:
- ./.volumes/db:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U defguard"]
interval: 3s
timeout: 5s
retries: 5
# vector:
# image: timberio/vector:latest-alpine
# profiles:
# - observability
# container_name: vector
# volumes:
# - ./configs/vector.yaml:/etc/vector/vector.yaml:ro
# - ./configs/key.pem:/etc/vector/key.pem:ro
# - ./configs/cert.pem:/etc/vector/cert.pem:ro
# command: ["--config", "/etc/vector/vector.yaml"]
# ports:
# - "8686:8686"
# - "8001:8001"
# logstash:
# image: docker.elastic.co/logstash/logstash:8.14.0
# profiles:
# - observability
# ports:
# - "8002:8002"
# volumes:
# - ./configs/logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro