-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
88 lines (88 loc) · 2.21 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: "3.9"
services:
build-arch: #just ffmpeg and pulseaudio
platform: amd64
network_mode: host
tty: true
stdin_open: true
build:
context: .
dockerfile: ./docker/build/Dockerfile.arch
environment:
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
- XDG_DATA_HOME=/output
- XDG_CONFIG_HOME=/output
- XDG_MUSIC_DIR=/output
volumes:
- type: bind
source: .
target: /ctune
- type: bind
source: $XDG_RUNTIME_DIR/pulse
target: $XDG_RUNTIME_DIR/pulse
- type: bind
source: ~/.config/pulse/cookie
target: /output/pulse/cookie
read_only: true
- type: bind
source: /tmp/.X11-unix
target: /tmp/.X11-unix
- type: bind
source: /dev/shm
target: /dev/shm
- type: bind
source: /etc/passwd
target: /etc/passwd
read_only: true
- type: bind
source: /etc/group
target: /etc/group
read_only: true
- type: bind
source: ./docker/out
target: /output
user: ${HOST_UID}:${AUDIO_GID}
build-ubuntu:
platform: amd64
network_mode: host
tty: true
stdin_open: true
build:
context: .
dockerfile: ./docker/build/Dockerfile.ubuntu
environment:
- DISPLAY=unix$DISPLAY
- PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native
- XDG_DATA_HOME=/output
- XDG_CONFIG_HOME=/output
- XDG_MUSIC_DIR=/output
volumes:
- type: bind
source: .
target: /ctune
- type: bind
source: $XDG_RUNTIME_DIR/pulse
target: $XDG_RUNTIME_DIR/pulse
- type: bind
source: ~/.config/pulse/cookie
target: /output/pulse/cookie
read_only: true
- type: bind
source: /tmp/.X11-unix
target: /tmp/.X11-unix
- type: bind
source: /dev/shm
target: /dev/shm
- type: bind
source: /etc/passwd
target: /etc/passwd
read_only: true
- type: bind
source: /etc/group
target: /etc/group
read_only: true
- type: bind
source: ./docker/out
target: /output
user: ${HOST_UID}:${AUDIO_GID}