Remove obsolete files and scripts related to the BGP server setup, including .gitignore, Dockerfile, and various documentation files. Update docker-compose.yml to streamline the configuration for the FRRouting BGP server. This cleanup enhances project maintainability and focuses on the current implementation.

This commit is contained in:
2025-07-11 18:41:15 +07:00
parent 58f1405fef
commit af197d8953
27 changed files with 443 additions and 3471 deletions
+22 -23
View File
@@ -2,31 +2,30 @@ version: '3.8'
services:
bgp-server:
build: .
image: quay.io/frrouting/frr:latest
container_name: bgp-server
restart: unless-stopped
ports:
- "179:179" # BGP порт
hostname: bgp-server
privileged: true
network_mode: host
volumes:
- ./data:/app/data:ro
- ./logs:/app/logs
- ./frr.conf:/etc/frr/frr.conf:ro
- ./prefixes.txt:/etc/frr/prefixes.txt:ro
- frr-logs:/var/log/frr
- frr-run:/var/run/frr
environment:
- BGP_LOCAL_AS=65000
- BGP_ROUTER_ID=192.168.100.99
- BGP_NEIGHBOR_IP=192.168.0.254
- BGP_NEIGHBOR_AS=65001
- BGP_HOLD_TIME=90
- BGP_KEEPALIVE=30
- BGP_LOG_LEVEL=info
networks:
- bgp-network
- FRR_USER=frr
- FRR_VTYSH_PASSWORD=zebra
ports:
- "179:179" # BGP port
- "2601:2601" # vtysh port
restart: unless-stopped
command: ["/usr/lib/frr/frrinit.sh", "start"]
cap_add:
- NET_ADMIN # Для работы с сетевыми интерфейсами
privileged: true # Для работы с FRR демонами
- NET_ADMIN
- SYS_ADMIN
security_opt:
- seccomp:unconfined
networks:
bgp-network:
driver: bridge
ipam:
config:
- subnet: 192.168.100.0/24
volumes:
frr-logs:
frr-run: