-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.template.yml
70 lines (68 loc) · 1.86 KB
/
docker-compose.template.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
version: '3.4'
x-common-variables: &common-variables
POSTGRES_USER: trunk_player_user
POSTGRES_PASSWORD: changeme
POSTGRES_DB: trunk_player
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
services:
icecast:
image: gibby/icecast
restart: always
environment:
ICECAST_ADMIN_USERNAME: changeme
ICECAST_ADMIN_PASSWORD: changeme
ICECAST_SOURCE_PASSWORD: changeme
ICECAST_RELAY_PASSWORD: changeme
ICECAST_HOSTNAME: icecast
ICECAST_PORT: 80
ICECAST_MAX_SOURCES: 100
ports:
- 80:80
db:
image: postgres
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
<<: *common-variables
sdr:
image: gibby/sdr-trunk:latest
restart: always
privileged: true
volumes:
- config:/home/radio/trunk-player/config
- audio_files:/home/radio/trunk-player/audio_files
- liquidsoap:/home/radio/trunk-player/liquidsoap
- /dev/bus/usb:/dev/bus/usb
links:
- "db:postgres"
- "icecast:icecast"
environment:
<<: *common-variables
ENCODING_LOGGING_LEVEL: INFO
START_TRUNK_PLAYER: "true"
LOCAL_AUDIO_FILES: "true"
ALLOWED_HOSTS: "['localhost', '127.0.0.1', '[::1]']"
DJANGO_ADMIN: changeme
DJANGO_PASS: changeme
DJANGO_EMAIL: trunk-player@changeme.com
SECRET_KEY: "changme"
SITE_TITLE: Trunk-Player
SITE_EMAIL: trunk-player@changeme.com
DEFAULT_FROM_EMAIL: Trunk Player <trunk-player@changeme.com>
AUDIO_URL_BASE: /audio_files/
TZ: America/New_York
ALLOW_GOOGLE_SIGNIN: "False"
DEBUG: "False"
EMAIL_HOST: email-smtp.us-east-1.amazonaws.com
EMAIL_PORT: 587
EMAIL_HOST_USER: changme
EMAIL_HOST_PASSWORD: changeme
EMAIL_USE_TLS: "True"
depends_on:
- db
- icecast
ports:
- 8000:8000
- 8080:80