homelab/metal/roles/pxe-server/files/docker-compose.yml
2022-05-12 23:15:51 +02:00

22 lines
670 B
YAML

version: "3"
services:
dhcp:
build: ./dhcp
volumes:
- ./data/pxe-config/dhcpd.conf:/etc/dhcp/dhcpd.conf
network_mode: host
tftp:
build: ./tftp
network_mode: host
volumes:
- ./data/pxe-config/grub.cfg:/var/lib/tftpboot/grub.cfg
- ./data/os/debian-installer/amd64/grubx64.efi:/var/lib/tftpboot/grubx64.efi
- ./data/os/debian-installer/amd64/initrd.gz:/var/lib/tftpboot/initrd.gz
- ./data/os/debian-installer/amd64/linux:/var/lib/tftpboot/linux
http:
image: nginx:latest
network_mode: host
volumes:
- ./data/os:/usr/share/nginx/html/os:ro
- ./data/preseed:/usr/share/nginx/html/preseed:ro