khuedoan-homelab/metal/roles/pxe-server/templates/docker-compose.yml
2021-07-23 13:50:33 +07:00

26 lines
718 B
YAML

version: "3"
services:
dhcp:
build: ./dhcp
volumes:
- ./dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf
network_mode: host
tftp:
build: ./tftp
network_mode: host
volumes:
- ./tftp/tftpboot/grub.cfg:/var/lib/tftpboot/grub.cfg
- ./mnt/EFI/fedora/grubx64.efi:/var/lib/tftpboot/grubx64.efi
- ./mnt/images/ignition.img:/var/lib/tftpboot/ignition.img
- ./mnt/images/pxeboot/initrd.img:/var/lib/tftpboot/initrd.img
- ./mnt/images/pxeboot/vmlinuz:/var/lib/tftpboot/vmlinuz
http:
build: ./http
network_mode: host
volumes:
- ./mnt:/usr/share/nginx/html/CoreOS
- ./http/ignition/:/usr/share/nginx/html/ignition
environment:
NGINX_PORT: 80