forked from raveberry/raveberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (63 loc) · 1.81 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
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
mopidy:
image: raveberry/raveberry-mopidy
user: "${UID:-1000}:${GID:-1000}"
volumes:
- songs-cache:/Music/raveberry
# Comment this line if pulse does not work.
- "/run/user/${UID:-1000}/pulse:/run/user/105/pulse"
# 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.conf
restart: always
# Use these three lines to use alsa if pulse is not working.
#user: root
#devices:
# - "/dev/snd:/dev/snd"
daphne:
image: raveberry/raveberry
environment:
ADMIN_PASSWORD: "${ADMIN_PASSWORD:-admin}"
MOD_PASSWORD: "${MOD_PASSWORD:-mod}"
PAD_PASSWORD: "${PAD_PASSWORD:-pad}"
DOCKER: 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
restart: always
nginx:
image: raveberry/raveberry-nginx
ports:
- "80:80"
volumes:
- static-files:/usr/share/nginx/static
depends_on:
- daphne
restart: always