mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 09:06:58 +00:00
- docker-compose.yml.example: drop privileged; add cap_add (NET_ADMIN, NET_RAW) and sysctls; quote env vars - entrypoint.sh: add strict mode + traps; wait for service; idempotent iptables; graceful shutdown - README.md: update to multi-arch + non-privileged run guidance; fix examples - .gitignore: ignore sbom.spdx.json and results.sarif - .github/dependabot.yml: monitor Dockerfiles weekly No functional changes intended; improves security, robustness, and maintainability.
19 lines
427 B
Plaintext
19 lines
427 B
Plaintext
version: "3"
|
|
|
|
services:
|
|
zerotierbridge:
|
|
container_name: zerotierbridge
|
|
image: registry.dangerous.tech/dangeroustech/zerotierbridge
|
|
restart: always
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
sysctls:
|
|
net.ipv4.ip_forward: "1"
|
|
volumes:
|
|
- zt_config:/var/lib/zerotier-one
|
|
environment:
|
|
ZT_NETWORKS: "NETWORK_ID_1 NETWORK_ID_2 NETWORK_ID_3"
|
|
ZT_BRIDGE: "true"
|
|
volumes:
|
|
zt_config: |