-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yaml
51 lines (48 loc) · 1.35 KB
/
docker-compose.yaml
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
version: '2'
services:
netmuxd:
container_name: netmuxd
build:
context: .
dockerfile: docker/netmuxd.dockerfile
command: sh -c "[ ! -f /build/netmuxd ] && cargo build --release --features zeroconf && cp target/debug/netmuxd /build/ && chmod +x /build/netmuxd || return 0"
image: netmuxd:latest
volumes:
- ./bin:/build
altserver:
container_name: altserver
build:
context: .
dockerfile: docker/altserver.dockerfile
command: sh -c "[ ! -f /build/altserver ] && make && cp /buildenv/altserver/AltServer-* /build/altserver && chmod +x /build/altserver || return 0"
image: altserver:latest
volumes:
- ./bin:/build
config:
build: docker
container_name: altserver_config
volumes:
- /dev/bus/usb:/dev/bus/usb
- /var/lib/lockdown:/var/lib/lockdown
- /var/run:/var/run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
privileged: true
stdin_open: true
tty: true
command: /bin/bash
daemon:
build: docker
container_name: daemon
volumes:
- /dev/bus/usb:/dev/bus/usb
- /var/lib/lockdown:/var/lib/lockdown
- /var/run:/var/run
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- .:/app
privileged: true
depends_on:
- netmuxd
- altserver
network_mode: host
restart: unless-stopped
command: ./run.sh