-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
59 lines (55 loc) · 1.72 KB
/
docker-compose.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '2'
services:
# LAVA server (for testing) instance inheriting from ci-box-lava-master
lava-server:
container_name: lava-server
hostname: lava-server
extends:
file: ./ci-box-lava-master/docker-compose.yml
service: lava-server
build:
args:
version: 2020.05
admin_username: admin
admin_password: password
workers: lava_worker0
ports:
- "8042:80" # expose http to outside
volumes:
- ./overlays/lava-server/etc/lava-server/dispatcher-config/devices:/etc/lava-server/dispatcher-config/devices
- ./overlays/lava-server/etc/lava-server/dispatcher-config/health-checks:/etc/lava-server/dispatcher-config/health-checks
# LAVA worker0 (for testing) instance inheriting from ci-box-lava-worker
lava-worker:
container_name: lava-worker0
hostname: lava_worker0
extends:
file: ./ci-box-lava-worker/docker-compose.yml
service: lava-worker
build:
args:
version: 2020.05
server: lava-server
volumes:
- /boot:/boot
- /lib/modules:/lib/modules
environment:
# We don't export /dev/kvm for compatibility reason (LAVA in a VM)
# Force libguestfs to use emulation instead of virtualization
- LIBGUESTFS_BACKEND_SETTINGS=force_tcg
privileged: true
# File Server (FTP/HTPP) to store artifacts (images, test templates...)
fileserver:
container_name: fileserver
hostname: fileserver
extends:
file: ./ci-box-fileserver/docker-compose.yml
service: fileserver
build:
args:
http_port: 80
ftp_port: 21
root: "/wwwroot"
ports: # expose http to outside
- "8081:80"
volumes:
- ./overlays/fileserver/wwwroot:/wwwroot