forked from raveberry/raveberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
icecast.docker-compose.yml
74 lines (73 loc) · 2.14 KB
/
icecast.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
version: '3'
volumes:
static-files:
songs-cache:
# If you want to access downloaded files on your host system,
# uncomment the following lines and choose a folder.
#driver_opts:
# type: 'none'
# o: 'bind'
# device: '/path/to/folder/'
services:
db:
image: postgres
environment:
- POSTGRES_DB=raveberry
- POSTGRES_USER=raveberry
- POSTGRES_PASSWORD=raveberry
restart: always
redis:
image: redis
restart: always
icecast:
image: raveberry/raveberry-icecast
environment:
ICECAST_ADMIN_PASSWORD: "${ICECAST_ADMIN_PASSWORD:-hackme}"
STREAM_PASSWORD: "${STREAM_PASSWORD:-raveberry}"
# uncomment this port mapping if you need to access icecast's web interface
#ports:
# - 8000:8000
# uncomment these lines with a path to a custom icecast config
#volumes:
# - /path/to/icecast.xml:/etc/icecast.xml
restart: always
mopidy:
image: raveberry/raveberry-mopidy
volumes:
- songs-cache:/Music/raveberry
# If you want to use spotify,
# uncomment this line with a path to a config file containing the spotify credentials
# - /path/to/mopidy.conf:/config/mopidy_icecast.conf
command: bash -c "/usr/bin/mopidy --config /config/mopidy_icecast.conf"
depends_on:
- icecast
restart: always
daphne:
image: raveberry/raveberry
environment:
ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin}"
MOD_PASSWORD: "${MOD_PASSWORD:-mod}"
PAD_PASSWORD: "${PAD_PASSWORD:-pad}"
DOCKER: 1
DOCKER_ICECAST: 1
command: bash -c "DJANGO_MOCK=1 python manage.py compilescss && DJANGO_MOCK=1 python manage.py migrate --noinput && scripts/create_users.sh && /usr/local/bin/daphne --bind 0.0.0.0 --port 9000 main.asgi:application"
expose:
- 9000
volumes:
- static-files:/opt/raveberry/static
- songs-cache:/Music/raveberry
depends_on:
- db
- redis
- mopidy
- icecast
restart: always
nginx:
image: raveberry/raveberry-nginx
ports:
- "80:80"
volumes:
- static-files:/usr/share/nginx/static
depends_on:
- daphne
restart: always