-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
104 lines (98 loc) · 2.22 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
nodeapi:
container_name: nodeapi
build:
context: ./
dockerfile: ./docker/nodeapi/Dockerfile
depends_on:
- centrifugo
environment:
- "TZ=Europe/London"
user: node:node
restart: always
ports:
- 9999:9999
networks:
- radio-network
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "3"
centrifugo:
container_name: centrifugo
restart: always
image: centrifugo/centrifugo:latest
volumes:
- ./docker/centrifugo/config.json:/centrifugo/config.json
command: centrifugo -c config.json
ports:
- 9998:9998
networks:
- radio-network
depends_on:
- icecast
ulimits:
nofile:
soft: 65535
hard: 65535
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "3"
liquidsoap:
build:
context: ./
dockerfile: ./docker/liquidsoap/Dockerfile
args:
- "USER_UID=${USER_UID:-1000}"
- "USER_GID=${USER_GID:-1000}"
user: 1000:1000
container_name: liquidsoap-2.3.0
environment:
- "TZ=Europe/London"
command:
- /home/radio/liquidsoap/radio/index.liq
volumes:
#- /path/to/web/folder/for/hls:/home/radio/liquidsoap/radio/hls
- /path/to/music:/home/radio/music
- ./docker/liquidsoap/rootfs/home/radio/liquidsoap/radio/log:/home/radio/liquidsoap/radio/log
networks:
- radio-network
depends_on:
- nodeapi
ports:
- 8007:8007
restart: always
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "3"
icecast:
build:
context: ./
dockerfile: ./docker/icecast/Dockerfile
args:
- VERSION=kh-icecast-2.4.0-kh22
container_name: icecast
restart: always
networks:
- radio-network
ports:
- 8000:8000
environment:
- "TZ=Europe/London"
- ICECAST_SOURCE_PASSWORD=hackme
- ICECAST_ADMIN_PASSWORD=hackme
- ICECAST_RELAY_PASSWORD=hackme
- ICECAST_HOSTNAME=localhost
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "3"
networks:
radio-network:
driver: bridge