Repository navigation
Expand file tree
/
Copy pathcompose.vlan.example.yml
More file actions
46 lines (45 loc) · 1.68 KB
/
Copy pathcompose.vlan.example.yml
File metadata and controls
46 lines (45 loc) · 1.68 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
# Generate the real compose.vlan.yml in Filterdesk (Policies → Guided setup →
# Download compose.vlan.yml), or on the Docker host with
# docker compose exec -T app php artisan probes:compose > compose.vlan.yml
# It covers every policy and extra network, with the commands to run first.
# This example shows its shape for two VLANs: everything a probe needs is in
# the file, and its VLAN is its only way out (Docker Compose 2.24 or later).
# List it in .env: COMPOSE_FILE=compose.yml:compose.proxy.yml:compose.vlan.yml
services:
probe-student:
environment:
PROBE_DNS_SERVERS: 10.0.20.1 # the VLAN's gateway
dns: [10.0.20.1] # the whole container, browser included
networks: !override
probe_control: {}
student_vlan:
gw_priority: 1
ipv4_address: 10.0.20.241
mac_address: 02:00:00:00:00:20
probe-staff:
environment:
PROBE_DNS_SERVERS: 10.0.10.1
dns: [10.0.10.1]
networks: !override
probe_control: {}
staff_vlan:
gw_priority: 1
ipv4_address: 10.0.10.241
mac_address: 02:00:00:00:00:10
# A probe for another network reuses the student probe's definition.
probe-guest:
extends: { file: compose.yml, service: probe-student }
environment:
PROBE_DNS_SERVERS: 10.0.80.1
ALLOWED_PRIVATE_HOSTS: ""
dns: [10.0.80.1]
networks: !override
probe_control: {}
guest_vlan:
gw_priority: 1
ipv4_address: 10.0.80.241
mac_address: 02:00:00:00:00:80
networks:
student_vlan: { external: true, name: itr_student_vlan }
staff_vlan: { external: true, name: itr_staff_vlan }
guest_vlan: { external: true, name: itr_guest_vlan }