aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.template
blob: ced5762831d91e53bd9855424300d6bc53a8a3b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '2.0'
services:
  lava-master:
    hostname: lava-master
    restart: always
    build:
      context: lava-master
    ports:
      - "10080:80"
      - "5555:5555"
      - "5556:5556"
    volumes:
# boot and /lib/modules are for libguestfs (TODO set them read_only with docker-compose 3.0)
      - "/boot:/boot"
      - "/lib/modules:/lib/modules"
  lab-slave-0:
    hostname: lab-slave-0
#conmux does not support dns_search
    dns_search: ""
    restart: always
    build:
      context: lava-slave
    environment:
      LAVA_MASTER: "lava-master"
    ports:
      - "69:69/udp"
      - "80:80"
      - "61950-62000:61950-62000"
    volumes:
# boot and /lib/modules are for libguestfs (TODO set them read_only with docker-compose 3.0)
      - "/boot:/boot"
      - "/lib/modules:/lib/modules"
    links:
      - "lava-master"
  squid:
    hostname: squid
    restart: always
    build:
      context: squid
    volumes:
      - squid-cache:/var/spool/squid
    ports:
      - "3128:3128"
volumes:
  squid-cache: