-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (40 loc) · 1018 Bytes
/
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
version: '3.8'
services:
app:
build: .
depends_on:
- database
ports:
- "8000-8099:8000-8099"
environment:
- DATABASE_HOST=database
- DATABASE_PASSWORD=teamplayer
- DATABASE_USER=teamplayer
- DJANGO_DEBUG
- DJANGO_SECRET_KEY
- TEAMPLAYER_CROSSFADE=5
- TEAMPLAYER_SHAKE_THINGS_UP=10
- TEAMPLAYER_ALWAYS_SHAKE_THINGS_UP=true
- TEAMPLAYER_AUTOFILL_STRATEGY=mood
- TEAMPLAYER_MPD_HOME=/opt/teamplayer/mpd
- TEAMPLAYER_UPLOADED_LIBRARY_DIR=/opt/teamplayer/library
- DJANGO_ALLOW_ASYNC_UNSAFE=true
volumes:
- static:/opt/teamplayer/static
database:
image: postgres:16
environment:
- POSTGRES_DB=teamplayer
- POSTGRES_PASSWORD=teamplayer
- POSTGRES_USER=teamplayer
web:
image: nginx:1.19
depends_on:
- app
ports:
- "80:80"
volumes:
- ./tools/docker/nginx.conf:/etc/nginx/nginx.conf:ro
- static:/opt/teamplayer/static
volumes:
static: