Added docker-compose.yaml

Allow quick provisioning of stack with isc-dhcp + glass on docker
This commit is contained in:
Matt Davidson 2018-03-11 18:32:42 -04:00 committed by GitHub
parent 3406a7c73f
commit 4d00021567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

21
docker-compose.yaml Normal file
View File

@ -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'"