summaryrefslogtreecommitdiffstats
path: root/docker-compose.template
diff options
context:
space:
mode:
authorTyler Baker <forcedinductionz@gmail.com>2017-10-25 08:13:48 -0700
committerGitHub <noreply@github.com>2017-10-25 08:13:48 -0700
commitceb64a544ae771e2e1d1a41e46a59c6f0a9de060 (patch)
tree0e3aac8edbfd28384469190795fab4e9d07cb9ec /docker-compose.template
parentee8ef7b266fe45f2f2bc3ea6a8759e012b021e40 (diff)
parent26cc005179760bd25b8bdd724a936847c81d24eb (diff)
Merge pull request #9 from montjoie/dockercompose
Dockercompose
Diffstat (limited to 'docker-compose.template')
-rw-r--r--docker-compose.template34
1 files changed, 34 insertions, 0 deletions
diff --git a/docker-compose.template b/docker-compose.template
new file mode 100644
index 0000000..dfe82c9
--- /dev/null
+++ b/docker-compose.template
@@ -0,0 +1,34 @@
+version: '2.0'
+services:
+ lava-master:
+ hostname: lava-master
+ restart: always
+ stdin_open: true
+ tty: true
+ build:
+ context: lava-master
+ devices:
+ - "/dev/kvm:/dev/kvm"
+ ports:
+ - "10080:80"
+ - "1022:22"
+ - "5555:5555"
+ - "5556:5556"
+ volumes:
+# boot and /lib/modules are for libguestfs
+ - "/boot:/boot"
+ - "/lib/modules:/lib/modules"
+ lava-slave:
+ hostname: lab-slave-0
+ restart: always
+ build:
+ context: lava-slave
+ devices:
+ environment:
+ LAVA_MASTER: "lava-master"
+ ports:
+ - "69:69/udp"
+ - "80:80"
+ - "55980-56000:55980-56000"
+ links:
+ - "lava-master"