From 4d0002156719eb23ad851c32ea8150a78c42216e Mon Sep 17 00:00:00 2001 From: Matt Davidson Date: Sun, 11 Mar 2018 18:32:42 -0400 Subject: [PATCH] Added docker-compose.yaml Allow quick provisioning of stack with isc-dhcp + glass on docker --- docker-compose.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..ce44200 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,21 @@ +version: "2" +services: + isc-dhcp: + image: "networkboot/dhcpd" + network_mode: host + volumes: + - /srv/dhcp/:/data/ + glass: + image: "node:8" + working_dir: /home/node/app + environment: + - NODE_ENV=production + volumes: + - .:/home/node/app + - /srv/dhcp:/var/lib/dhcp + - /srv/dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf + - /srv/dhcp/ + ports: + - "8080:8080" + - "3000:3000" + command: "/bin/sh -c 'npm install && npm start'"