Skip to content

Commit af6ed8d

Browse files
authored
feat: enable ipv6 on docker (#1086)
* feat: add ipv6 for docker * docs: update documentation
1 parent c2989fa commit af6ed8d

13 files changed

+48
-15
lines changed

docker_compose/.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ INVENTORY_FILE_ABSOLUTE_PATH=
77
COREFILE_ABS_PATH=
88
COREDNS_ADDRESS=172.28.0.255
99
SC4SNMP_VERSION="1.12.0-beta.1"
10-
10+
IPv6_ENABLED=false
1111

1212
# Dependencies images
1313
COREDNS_IMAGE=coredns/coredns
@@ -82,6 +82,7 @@ CHAIN_OF_TASKS_EXPIRY_TIME=500
8282
# Traps configuration
8383
SNMP_V3_SECURITY_ENGINE_ID=80003a8c04
8484
TRAPS_PORT=162
85+
IPv6_TRAPS_PORT=2163
8586
TRAP_LOG_LEVEL=INFO
8687

8788
# Scheduler configuration

docker_compose/docker-compose-coredns.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ services:
1111
volumes:
1212
- '${COREFILE_ABS_PATH}:/Corefile'
1313
networks:
14-
my_network:
14+
sc4snmp_network:
1515
ipv4_address: ${COREDNS_ADDRESS}

docker_compose/docker-compose-dependencies.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
depends_on:
1111
- coredns
1212
networks:
13-
- my_network
13+
- sc4snmp_network
1414
dns:
1515
- ${COREDNS_ADDRESS}
1616

@@ -23,7 +23,7 @@ services:
2323
depends_on:
2424
- coredns
2525
networks:
26-
- my_network
26+
- sc4snmp_network
2727
dns:
2828
- ${COREDNS_ADDRESS}
2929
mongo:
@@ -33,7 +33,7 @@ services:
3333
depends_on:
3434
- coredns
3535
networks:
36-
- my_network
36+
- sc4snmp_network
3737
dns:
3838
- ${COREDNS_ADDRESS}
3939
volumes:

docker_compose/docker-compose-inventory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ services:
2828
- inventory-tmp:/tmp/:rw
2929
restart: on-failure
3030
networks:
31-
- my_network
31+
- sc4snmp_network
3232
dns:
3333
- ${COREDNS_ADDRESS}
3434
volumes:
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: '3.8'
22
networks:
3-
my_network:
3+
sc4snmp_network:
4+
name: sc4snmp_network
5+
enable_ipv6: ${IPv6_ENABLED:-false}
46
ipam:
5-
driver: default
67
config:
7-
- subnet: 172.28.0.0/16
8+
- subnet: 172.28.0.0/16
9+
gateway: 172.28.0.1
10+
- subnet: fd02::/64
11+
gateway: fd02::1

docker_compose/docker-compose-scheduler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ services:
2525
- scheduler-tmp:/tmp/:rw
2626
restart: on-failure
2727
networks:
28-
- my_network
28+
- sc4snmp_network
2929
dns:
3030
- ${COREDNS_ADDRESS}
3131
volumes:

docker_compose/docker-compose-traps.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,19 @@ services:
2626
- SPLUNK_HEC_PATH=${SPLUNK_HEC_PATH:-/services/collector}
2727
- SNMP_V3_SECURITY_ENGINE_ID=${SNMP_V3_SECURITY_ENGINE_ID:-80003a8c04}
2828
- PYSNMP_DEBUG=${PYSNMP_DEBUG}
29+
- IPv6_ENABLED=${IPv6_ENABLED:-false}
2930
image: ${SC4SNMP_IMAGE}:${SC4SNMP_TAG:-latest}
3031
networks:
31-
- my_network
32+
- sc4snmp_network
3233
ports:
3334
- mode: host
3435
protocol: udp
3536
published: ${TRAPS_PORT}
3637
target: 2162
38+
- mode: host
39+
protocol: udp
40+
published: ${IPv6_TRAPS_PORT}
41+
target: 2163
3742
restart: on-failure
3843
secrets: []
3944
volumes:

docker_compose/docker-compose-worker-poller.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ services:
4343
- WORKER_CONCURRENCY=${WORKER_POLLER_CONCURRENCY:-2}
4444
- PREFETCH_COUNT=${PREFETCH_POLLER_COUNT:-1}
4545
- PYSNMP_DEBUG=${PYSNMP_DEBUG}
46+
- IPv6_ENABLED=${IPv6_ENABLED:-false}
4647
image: ${SC4SNMP_IMAGE}:${SC4SNMP_TAG:-latest}
4748
networks:
48-
- my_network
49+
- sc4snmp_network
4950
restart: on-failure
5051
secrets: []
5152
volumes:

docker_compose/docker-compose-worker-sender.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ services:
5252
- worker-sender-tmp:/tmp/:rw
5353
restart: on-failure
5454
networks:
55-
- my_network
55+
- sc4snmp_network
5656
dns:
5757
- ${COREDNS_ADDRESS}
5858
deploy:

docker_compose/docker-compose-worker-trap.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ services:
4545
- MAX_DNS_CACHE_SIZE_TRAPS=${MAX_DNS_CACHE_SIZE_TRAPS:-500}
4646
- TTL_DNS_CACHE_TRAPS=${TTL_DNS_CACHE_TRAPS:-1800}
4747
- PYSNMP_DEBUG=${PYSNMP_DEBUG}
48+
- IPv6_ENABLED=${IPv6_ENABLED:-false}
4849
depends_on:
4950
- redis
5051
- mongo
@@ -55,7 +56,7 @@ services:
5556
- worker-trap-tmp:/tmp/:rw
5657
restart: on-failure
5758
networks:
58-
- my_network
59+
- sc4snmp_network
5960
dns:
6061
- ${COREDNS_ADDRESS}
6162
deploy:

0 commit comments

Comments
 (0)