2018-12-18 05:46:10 +00:00
|
|
|
#
|
|
|
|
# AzuraCast Docker Compose Configuration File
|
|
|
|
#
|
|
|
|
# When updating, you will be prompted to replace this file with a new
|
|
|
|
# version; you should do this whenever possible to take advantage of
|
|
|
|
# new updates.
|
|
|
|
#
|
|
|
|
# If you need to customize this file, you can create a new file named:
|
|
|
|
# docker-compose.override.yml
|
|
|
|
# with any changes you need to make.
|
|
|
|
#
|
2021-02-14 18:36:19 +00:00
|
|
|
version : '2.2'
|
2017-05-30 10:45:48 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
services :
|
|
|
|
nginx_proxy :
|
|
|
|
container_name : nginx_proxy
|
2021-06-22 12:36:58 +00:00
|
|
|
image : "ghcr.io/azuracast/nginx_proxy:${AZURACAST_VERSION:-latest}"
|
2021-02-14 18:36:19 +00:00
|
|
|
ports :
|
2020-05-19 05:01:13 +00:00
|
|
|
- '${AZURACAST_HTTP_PORT:-80}:80'
|
|
|
|
- '${AZURACAST_HTTPS_PORT:-443}:443'
|
2021-02-14 18:36:19 +00:00
|
|
|
volumes :
|
2020-05-19 05:01:13 +00:00
|
|
|
- letsencrypt:/etc/nginx/certs
|
|
|
|
- nginx_proxy_vhosts:/etc/nginx/vhost.d
|
|
|
|
- letsencrypt_html:/usr/share/nginx/html
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
2021-02-14 18:36:19 +00:00
|
|
|
environment :
|
2021-03-06 01:59:31 +00:00
|
|
|
NGINX_TIMEOUT : ${NGINX_TIMEOUT:-1800}
|
2021-02-14 18:36:19 +00:00
|
|
|
DEFAULT_HOST : ${LETSENCRYPT_HOST:-azuracast.local}
|
|
|
|
networks :
|
2020-06-23 10:05:07 +00:00
|
|
|
- frontend
|
2021-02-14 18:36:19 +00:00
|
|
|
depends_on :
|
2020-05-19 05:01:13 +00:00
|
|
|
- web
|
2021-02-14 18:36:19 +00:00
|
|
|
restart : always
|
2020-05-19 05:01:13 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
nginx_proxy_letsencrypt :
|
|
|
|
container_name : nginx_proxy_letsencrypt
|
2021-06-22 12:36:58 +00:00
|
|
|
image : "ghcr.io/azuracast/nginx_proxy_letsencrypt:${AZURACAST_VERSION:-latest}"
|
2021-02-14 18:36:19 +00:00
|
|
|
volumes_from :
|
2020-05-19 05:01:13 +00:00
|
|
|
- nginx_proxy
|
2021-02-14 18:36:19 +00:00
|
|
|
volumes :
|
|
|
|
- letsencrypt_acme:/etc/acme.sh
|
2020-05-19 05:01:13 +00:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2021-02-14 18:36:19 +00:00
|
|
|
environment :
|
|
|
|
DEFAULT_EMAIL : ${LETSENCRYPT_EMAIL}
|
|
|
|
networks :
|
2020-06-23 10:05:07 +00:00
|
|
|
- frontend
|
2021-02-14 18:36:19 +00:00
|
|
|
restart : always
|
2020-05-19 05:01:13 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
web :
|
|
|
|
container_name : azuracast_web
|
2021-06-22 12:36:58 +00:00
|
|
|
image : "ghcr.io/azuracast/web:${AZURACAST_VERSION:-latest}"
|
2019-01-14 11:36:17 +00:00
|
|
|
# Want to customize the HTTP/S ports? Follow the instructions here:
|
2021-02-15 21:36:34 +00:00
|
|
|
# https://docs.azuracast.com/en/administration/docker#using-non-standard-ports
|
2021-02-14 18:36:19 +00:00
|
|
|
ports :
|
2020-01-05 21:29:56 +00:00
|
|
|
- '${AZURACAST_SFTP_PORT:-2022}:2022'
|
2021-02-14 18:36:19 +00:00
|
|
|
depends_on :
|
2018-02-23 20:40:04 +00:00
|
|
|
- mariadb
|
|
|
|
- redis
|
2021-02-14 18:36:19 +00:00
|
|
|
env_file : azuracast.env
|
|
|
|
environment :
|
|
|
|
LANG : ${LANG:-en_US.UTF-8}
|
2021-06-22 12:36:58 +00:00
|
|
|
AZURACAST_DC_REVISION : 12
|
|
|
|
AZURACAST_DOCKER_STANDALONE_MODE : 1
|
2021-02-14 18:36:19 +00:00
|
|
|
AZURACAST_VERSION : ${AZURACAST_VERSION:-latest}
|
|
|
|
AZURACAST_SFTP_PORT : ${AZURACAST_SFTP_PORT:-2022}
|
|
|
|
VIRTUAL_HOST : ${LETSENCRYPT_HOST:-azuracast.local}
|
2021-03-06 01:59:31 +00:00
|
|
|
NGINX_TIMEOUT : ${NGINX_TIMEOUT:-1800}
|
2021-02-14 18:36:19 +00:00
|
|
|
LETSENCRYPT_HOST : ${LETSENCRYPT_HOST}
|
|
|
|
LETSENCRYPT_EMAIL : ${LETSENCRYPT_EMAIL}
|
|
|
|
volumes :
|
2020-06-29 21:26:48 +00:00
|
|
|
- letsencrypt:/etc/nginx/certs:ro
|
2020-09-28 23:04:49 +00:00
|
|
|
- www_vendor:/var/azuracast/www/vendor
|
2018-02-23 20:40:04 +00:00
|
|
|
- tmp_data:/var/azuracast/www_tmp
|
|
|
|
- station_data:/var/azuracast/stations
|
2018-09-27 17:29:05 +00:00
|
|
|
- shoutcast2_install:/var/azuracast/servers/shoutcast2
|
2019-12-31 12:49:25 +00:00
|
|
|
- geolite_install:/var/azuracast/geoip
|
2020-01-05 21:29:56 +00:00
|
|
|
- sftpgo_data:/var/azuracast/sftpgo/persist
|
2019-05-24 14:58:33 +00:00
|
|
|
- backups:/var/azuracast/backups
|
2021-02-14 18:36:19 +00:00
|
|
|
networks :
|
2020-06-23 10:05:07 +00:00
|
|
|
- frontend
|
|
|
|
- backend
|
2021-02-14 18:36:19 +00:00
|
|
|
restart : always
|
|
|
|
ulimits : &default-ulimits
|
|
|
|
nofile :
|
|
|
|
soft : 65536
|
|
|
|
hard : 65536
|
|
|
|
logging : &default-logging
|
|
|
|
options :
|
|
|
|
max-size : "1m"
|
|
|
|
max-file : "5"
|
2017-05-31 04:14:58 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
mariadb :
|
|
|
|
container_name : azuracast_mariadb
|
2021-06-22 12:36:58 +00:00
|
|
|
image : "ghcr.io/azuracast/db:${AZURACAST_VERSION:-latest}"
|
2021-02-14 18:36:19 +00:00
|
|
|
volumes :
|
2017-05-31 04:14:58 +00:00
|
|
|
- db_data:/var/lib/mysql
|
2021-02-14 18:36:19 +00:00
|
|
|
env_file : azuracast.env
|
|
|
|
networks :
|
2020-06-23 10:05:07 +00:00
|
|
|
- backend
|
2021-02-14 18:36:19 +00:00
|
|
|
restart : always
|
|
|
|
logging : *default-logging
|
2017-05-31 04:14:58 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
redis :
|
|
|
|
container_name : azuracast_redis
|
2021-06-22 12:36:58 +00:00
|
|
|
image : "ghcr.io/azuracast/redis:${AZURACAST_VERSION:-latest}"
|
2021-02-14 18:36:19 +00:00
|
|
|
sysctls :
|
|
|
|
net.core.somaxconn : 1024
|
|
|
|
volumes :
|
2019-08-18 01:33:44 +00:00
|
|
|
- redis_data:/data
|
2021-02-14 18:36:19 +00:00
|
|
|
networks :
|
2020-06-23 10:05:07 +00:00
|
|
|
- backend
|
2021-02-14 18:36:19 +00:00
|
|
|
restart : always
|
|
|
|
logging : *default-logging
|
2017-05-31 04:14:58 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
networks :
|
|
|
|
frontend :
|
|
|
|
driver : bridge
|
|
|
|
backend :
|
|
|
|
driver : bridge
|
2020-06-23 10:05:07 +00:00
|
|
|
|
2021-02-14 18:36:19 +00:00
|
|
|
volumes :
|
|
|
|
nginx_proxy_vhosts : { }
|
|
|
|
db_data : { }
|
|
|
|
letsencrypt : { }
|
|
|
|
letsencrypt_html : { }
|
|
|
|
letsencrypt_acme : { }
|
|
|
|
shoutcast2_install : { }
|
|
|
|
geolite_install : { }
|
|
|
|
sftpgo_data : { }
|
|
|
|
station_data : { }
|
|
|
|
www_vendor : { }
|
|
|
|
tmp_data : { }
|
|
|
|
redis_data : { }
|
|
|
|
backups : { }
|