forked from Mirrors/dhcp-netboot.xyz
Add docker-compose file for alternative way to run
Adds a compose file to allow running the contianer with ipvlan networking on a separate IP address, rather than trying to open ports on the host.
This commit is contained in:
parent
bb6e1e1260
commit
07a531d138
1 changed files with 24 additions and 0 deletions
24
docker-compose.yml
Normal file
24
docker-compose.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
version: "2.1"
|
||||
services:
|
||||
netbootxyz:
|
||||
container_name: netbootxyz
|
||||
build:
|
||||
context: .
|
||||
environment:
|
||||
- DHCP_RANGE_START=${SUBNET:-192.168.0.1}
|
||||
networks:
|
||||
netbootxyz_network:
|
||||
ipv4_address: ${CONTAINER_IP:-192.168.0.250}
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
networks:
|
||||
netbootxyz_network:
|
||||
driver: ipvlan
|
||||
driver_opts:
|
||||
parent: ${INTERFACE:-eth0}
|
||||
ipam:
|
||||
config:
|
||||
- subnet: ${SUBNET:-192.168.0.1}/${SUBNET_PREFIX_BITS:-24}
|
||||
gateway: ${GATEWAY:-192.168.0.1}
|
||||
ip_range: ${CONTAINER_IP:-192.168.0.250}/32
|
||||
Loading…
Add table
Add a link
Reference in a new issue