File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed
Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ # .env file for configuring Etherbridge container
2+
3+ # Set the mode to either "server" or "client"
4+ # - Use "server" if you want the container to run as a server
5+ # - Use "client" if you want the container to run as a client
6+ MODE = server
7+
8+ # For "server" mode, provide the external and internal interfaces
9+ # - EXTERNAL_INTERFACE: The network interface to be used externally (default is wlan0)
10+ # - INTERNAL_INTERFACE: The internal network interface to be used (default is eth0)
11+ EXTERNAL_INTERFACE = wlan0
12+ INTERNAL_INTERFACE = eth0
13+
14+ # For "client" mode, provide the following:
15+ # - PEER: The peer address to connect to in client mode
16+ # - BRIDGE_IP: The IP address of the bridge (default is 172.16.78.2 for client mode)
17+ PEER = robot
18+ BRIDGE_IP = 172.16.78.2
Original file line number Diff line number Diff line change 1+ services :
2+ server :
3+ image : ghcr.io/xtech/etherbridge:main
4+ container_name : etherbridge-server
5+ command : server -e ${EXTERNAL_INTERFACE:-wlan0} -i ${INTERNAL_INTERFACE:-eth0}
6+ network_mode : host
7+ privileged : true
8+ restart : unless-stopped
9+ profiles :
10+ - server
11+ client :
12+ image : ghcr.io/xtech/etherbridge:main
13+ container_name : etherbridge-client
14+ command : client --peer ${PEER:-robot.local} --bridge ${BRIDGE_IP:-172.16.78.2}
15+ network_mode : host
16+ privileged : true
17+ restart : unless-stopped
18+ profiles :
19+ - client
You can’t perform that action at this time.
0 commit comments