khuedoan-homelab/metal/roles/pxe-boot/templates/docker-compose.yml
2021-06-13 02:39:47 +07:00

29 lines
792 B
YAML

version: "3"
services:
dhcp:
build: ./dhcp
network_mode: host
tftp:
build: ./tftp
network_mode: host
volumes:
- ./mnt/EFI/BOOT/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
butane:
image: quay.io/coreos/butane:release
volumes:
- ./http/ignition/:/local/src
working_dir: /local/src
command: --pretty --strict ignition.yaml --output ignition.json