Files
openwrt-docker/docker-compose.yml
T

51 lines
1.3 KiB
YAML

version: "3"
services:
qemu:
container_name: openwrt
image: albrechtloh/qemu-openwrt:openwrt-23.05.2-9
#image: "openwrt-docker-arm64"
environment:
DEBUG: "y"
# Define number of VM CPUs
CPU_COUNT: 2
# If WAN interface is not specified the Docker network
# In this case a port forwarding from port OpenWrt 80 to port 8000 is available
#WAN_IF: "enx00e04c0407a6"
LAN_IF: "enx00e04d68033f"
# USB passthrough
# Format <vendorID>:<productID> like 'lsusb' is given
# Currently only one USB device is supported
USB_VID_1: "148f" # vendor ID
USB_PID_1: "7601" # product ID
ports:
# Port 8006 is console tty web VNC
- 8006:8006
# Port 8000 is available only when Docker WAN network is used.
# Use script /usr/bin/fw_wan_open_http to open the port
- 8000:8000
# SSH
# Use script /usr/bin/fw_wan_open_ssh to open the port
- 8022:8022
stop_grace_period: 2m
restart: on-failure
# The following settings are mandantory to run the container
devices:
- /dev/kvm
device_cgroup_rules:
- 'c *:* rwm'
cap_add:
- NET_ADMIN
pid: "host"
privileged: true
volumes:
- /dev:/dev/
- data:/storage/
volumes:
data: