|
1 | 1 | services: |
2 | 2 | core: |
3 | | - image: ghcr.io/defguard/defguard:latest |
| 3 | + image: ghcr.io/defguard/defguard:${IMAGE_TAG} |
4 | 4 | build: |
5 | 5 | context: . |
6 | 6 | dockerfile: Dockerfile |
7 | 7 | environment: |
8 | | - DEFGUARD_COOKIE_INSECURE: "true" |
9 | | - DEFGUARD_SECRET_KEY: aa5a506b11d719dd7170f57f5d9947faf8eb0bc2be1325e42aa0237c3dcfd26456e73dff9eef3b12c7bcf8711b45e3e703d8e21ee1c08520f5e12e3f5772da94 |
10 | | - DEFGUARD_AUTH_SECRET: defguard-auth-secret |
11 | | - DEFGUARD_GATEWAY_SECRET: defguard-gateway-secret |
12 | | - DEFGUARD_YUBIBRIDGE_SECRET: defguard-yubibridge-secret |
13 | 8 | DEFGUARD_DB_HOST: db |
14 | 9 | DEFGUARD_DB_PORT: 5432 |
15 | 10 | DEFGUARD_DB_USER: defguard |
16 | 11 | DEFGUARD_DB_PASSWORD: defguard |
17 | 12 | DEFGUARD_DB_NAME: defguard |
18 | | - DEFGUARD_URL: http://localhost:8000 |
19 | 13 | RUST_BACKTRACE: 1 |
20 | 14 | ports: |
21 | | - # rest api |
| 15 | + # REST API |
22 | 16 | - "8000:8000" |
23 | | - # grpc |
| 17 | + # Default Core GRPC port |
24 | 18 | - "50055:50055" |
25 | 19 | depends_on: |
26 | 20 | - db |
27 | 21 |
|
28 | 22 | gateway: |
29 | | - image: ghcr.io/defguard/gateway:latest |
30 | | - environment: |
31 | | - DEFGUARD_GRPC_URL: http://core:50055 |
32 | | - DEFGUARD_STATS_PERIOD: 60 |
33 | | - DEFGUARD_TOKEN: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJEZWZHdWFyZCIsInN1YiI6IlRlc3ROZXQiLCJjbGllbnRfaWQiOiIiLCJleHAiOjU5NjE3NDcwNzYsIm5iZiI6MTY2Njc3OTc4MSwicm9sZXMiOltdfQ.uEUMnw_gO23W0K2q3N1lToeP0D2zAY1swr8N-84sRHA |
34 | | - RUST_LOG: debug |
| 23 | + image: ghcr.io/defguard/gateway:${IMAGE_TAG} |
35 | 24 | ports: |
36 | 25 | # WireGuard endpoint |
37 | 26 | - "50051:50051/udp" |
| 27 | + # Default Gateway GRPC port |
| 28 | + - "50066:50066" |
38 | 29 | depends_on: |
39 | 30 | - core |
40 | 31 | cap_add: |
41 | 32 | - NET_ADMIN |
42 | 33 |
|
43 | 34 | db: |
44 | | - image: postgres:17-alpine |
| 35 | + image: postgres:18-alpine |
45 | 36 | environment: |
46 | 37 | POSTGRES_DB: defguard |
47 | 38 | POSTGRES_USER: defguard |
48 | 39 | POSTGRES_PASSWORD: defguard |
49 | 40 | volumes: |
50 | | - - ./.volumes/db:/var/lib/postgresql/data |
| 41 | + - ./.volumes/db:/var/lib/postgresql |
51 | 42 | ports: |
52 | 43 | - "5432:5432" |
53 | 44 |
|
54 | | - device: |
55 | | - build: |
56 | | - context: . |
57 | | - dockerfile: Dockerfile.device |
58 | | - depends_on: |
59 | | - - gateway |
60 | | - cap_add: |
61 | | - - NET_ADMIN |
| 45 | + # vector: |
| 46 | + # image: timberio/vector:latest-alpine |
| 47 | + # profiles: |
| 48 | + # - observability |
| 49 | + # container_name: vector |
| 50 | + # volumes: |
| 51 | + # - ./configs/vector.yaml:/etc/vector/vector.yaml:ro |
| 52 | + # - ./configs/key.pem:/etc/vector/key.pem:ro |
| 53 | + # - ./configs/cert.pem:/etc/vector/cert.pem:ro |
| 54 | + # command: ["--config", "/etc/vector/vector.yaml"] |
| 55 | + # ports: |
| 56 | + # - "8686:8686" |
| 57 | + # - "8001:8001" |
62 | 58 |
|
63 | | - vector: |
64 | | - image: timberio/vector:latest-alpine |
65 | | - profiles: |
66 | | - - observability |
67 | | - container_name: vector |
68 | | - volumes: |
69 | | - - ./configs/vector.yaml:/etc/vector/vector.yaml:ro |
70 | | - - ./configs/key.pem:/etc/vector/key.pem:ro |
71 | | - - ./configs/cert.pem:/etc/vector/cert.pem:ro |
72 | | - command: ["--config", "/etc/vector/vector.yaml"] |
73 | | - ports: |
74 | | - - "8686:8686" |
75 | | - - "8001:8001" |
76 | | - |
77 | | - logstash: |
78 | | - image: docker.elastic.co/logstash/logstash:8.14.0 |
79 | | - profiles: |
80 | | - - observability |
81 | | - ports: |
82 | | - - "8002:8002" |
83 | | - volumes: |
84 | | - - ./configs/logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro |
| 59 | + # logstash: |
| 60 | + # image: docker.elastic.co/logstash/logstash:8.14.0 |
| 61 | + # profiles: |
| 62 | + # - observability |
| 63 | + # ports: |
| 64 | + # - "8002:8002" |
| 65 | + # volumes: |
| 66 | + # - ./configs/logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro |
85 | 67 |
|
86 | 68 | openldap: |
87 | 69 | image: bitnamilegacy/openldap:2.6 |
|
0 commit comments