Skip to content

Commit 6c51a4a

Browse files
Added Docker Compose
1 parent 4c1b9b2 commit 6c51a4a

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.env

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

docker-compose.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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

0 commit comments

Comments
 (0)