2018-03-20 00:44:43 +01:00
|
|
|
version: '2.2'
|
2017-05-30 12:45:48 +02:00
|
|
|
|
|
|
|
services:
|
2018-02-23 21:40:04 +01:00
|
|
|
web:
|
|
|
|
image: azuracast/azuracast_web:latest
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- influxdb
|
|
|
|
- stations
|
|
|
|
- redis
|
2018-10-19 06:27:30 +02:00
|
|
|
env_file: azuracast.env
|
2018-02-23 21:40:04 +01:00
|
|
|
environment: &default-environment
|
2018-10-19 06:27:30 +02:00
|
|
|
AZURACAST_DC_REVISION: 4
|
2018-02-23 21:40:04 +01:00
|
|
|
volumes:
|
|
|
|
- www_data:/var/azuracast/www
|
|
|
|
- tmp_data:/var/azuracast/www_tmp
|
|
|
|
- station_data:/var/azuracast/stations
|
2018-09-27 19:29:05 +02:00
|
|
|
- shoutcast2_install:/var/azuracast/servers/shoutcast2
|
2018-03-20 00:44:43 +01:00
|
|
|
init: true
|
2018-02-23 21:40:04 +01:00
|
|
|
restart: always
|
2018-10-25 04:55:51 +02:00
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "1m"
|
|
|
|
max-file: "5"
|
2018-02-23 21:40:04 +01:00
|
|
|
|
2017-05-31 06:14:58 +02:00
|
|
|
nginx:
|
2017-06-02 11:57:42 +02:00
|
|
|
image: azuracast/azuracast_nginx:latest
|
2017-05-31 06:14:58 +02:00
|
|
|
ports:
|
2018-11-19 17:26:22 +01:00
|
|
|
- '${AZURACAST_HTTP_PORT:-80}:80'
|
|
|
|
- '${AZURACAST_HTTPS_PORT:-443}:443'
|
2017-05-31 06:14:58 +02:00
|
|
|
depends_on:
|
2017-05-31 17:47:19 +02:00
|
|
|
- web
|
2017-06-01 12:25:15 +02:00
|
|
|
- stations
|
2017-05-31 06:14:58 +02:00
|
|
|
volumes:
|
2018-01-19 13:09:30 +01:00
|
|
|
- www_data:/var/azuracast/www
|
2017-12-16 15:30:48 +01:00
|
|
|
- nginx_letsencrypt_certs:/etc/nginx/ssl
|
|
|
|
- nginx_letsencrypt_www:/var/www/letsencrypt
|
2017-06-02 17:09:38 +02:00
|
|
|
restart: always
|
2018-10-25 04:55:51 +02:00
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "1m"
|
|
|
|
max-file: "5"
|
2017-05-31 06:14:58 +02:00
|
|
|
|
2018-03-25 06:35:04 +02:00
|
|
|
# To use the LetsEncrypt support:
|
|
|
|
# docker-compose run --rm letsencrypt certonly --webroot -w /var/www/letsencrypt
|
2017-12-16 15:30:48 +01:00
|
|
|
letsencrypt:
|
|
|
|
image: certbot/certbot
|
|
|
|
command: /bin/true
|
|
|
|
volumes:
|
|
|
|
- nginx_letsencrypt_certs:/etc/letsencrypt
|
|
|
|
- nginx_letsencrypt_www:/var/www/letsencrypt
|
|
|
|
|
2017-05-31 06:14:58 +02:00
|
|
|
mariadb:
|
2018-03-25 06:35:04 +02:00
|
|
|
image: azuracast/azuracast_db:latest
|
2017-05-31 06:14:58 +02:00
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/mysql
|
2018-10-19 06:27:30 +02:00
|
|
|
env_file: azuracast.env
|
2017-05-31 06:14:58 +02:00
|
|
|
environment:
|
2018-10-19 06:27:30 +02:00
|
|
|
<<: *default-environment
|
2017-06-02 17:09:38 +02:00
|
|
|
restart: always
|
2017-05-31 06:14:58 +02:00
|
|
|
|
|
|
|
influxdb:
|
2018-03-25 06:35:04 +02:00
|
|
|
image: azuracast/azuracast_influxdb:latest
|
2017-05-31 06:14:58 +02:00
|
|
|
volumes:
|
|
|
|
- influx_data:/var/lib/influxdb
|
2017-06-02 17:09:38 +02:00
|
|
|
restart: always
|
2017-05-31 06:14:58 +02:00
|
|
|
|
2017-06-04 12:56:20 +02:00
|
|
|
redis:
|
2018-03-25 06:35:04 +02:00
|
|
|
image: azuracast/azuracast_redis:latest
|
2017-06-04 12:56:20 +02:00
|
|
|
restart: always
|
|
|
|
|
2017-05-31 17:47:19 +02:00
|
|
|
cron:
|
2017-06-03 16:56:55 +02:00
|
|
|
container_name: azuracast_cron
|
2017-06-02 11:57:42 +02:00
|
|
|
image: azuracast/azuracast_web:latest
|
2017-06-03 16:56:55 +02:00
|
|
|
volumes_from:
|
|
|
|
- web
|
2017-05-31 17:47:19 +02:00
|
|
|
depends_on:
|
2017-06-01 14:18:13 +02:00
|
|
|
- mariadb
|
|
|
|
- influxdb
|
|
|
|
- stations
|
2017-06-04 12:56:20 +02:00
|
|
|
- redis
|
2018-10-19 06:27:30 +02:00
|
|
|
env_file: azuracast.env
|
2018-02-23 21:28:05 +01:00
|
|
|
environment:
|
2018-10-19 06:27:30 +02:00
|
|
|
<<: *default-environment
|
2018-03-06 06:25:55 +01:00
|
|
|
command: 'cron'
|
2018-03-20 00:44:43 +01:00
|
|
|
init: true
|
2017-06-03 16:56:55 +02:00
|
|
|
restart: always
|
2018-10-25 04:55:51 +02:00
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "1m"
|
|
|
|
max-file: "3"
|
2017-06-03 16:56:55 +02:00
|
|
|
|
|
|
|
cli:
|
|
|
|
image: azuracast/azuracast_web:latest
|
|
|
|
volumes_from:
|
|
|
|
- web
|
2017-06-01 14:18:13 +02:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- influxdb
|
|
|
|
- stations
|
2017-06-04 12:56:20 +02:00
|
|
|
- redis
|
2018-10-19 06:27:30 +02:00
|
|
|
env_file: azuracast.env
|
2018-02-23 21:28:05 +01:00
|
|
|
environment:
|
2018-10-19 06:27:30 +02:00
|
|
|
<<: *default-environment
|
2017-10-22 02:29:38 +02:00
|
|
|
user: 'azuracast'
|
|
|
|
working_dir: '/var/azuracast/www'
|
2018-10-03 02:24:42 +02:00
|
|
|
command: '/bin/true'
|
2018-03-20 17:31:55 +01:00
|
|
|
tty: true # Pretty colors
|
2018-03-20 00:44:43 +01:00
|
|
|
init: true
|
2017-05-31 06:14:58 +02:00
|
|
|
|
|
|
|
stations:
|
2017-06-03 16:56:55 +02:00
|
|
|
container_name: azuracast_stations
|
2018-09-27 23:02:51 +02:00
|
|
|
image: azuracast/azuracast_radio:latest
|
2017-05-30 12:45:48 +02:00
|
|
|
ports:
|
2018-03-06 05:01:42 +01:00
|
|
|
# Uncomment the line below to expose the full range of available station ports.
|
|
|
|
# Note: This is not recommended currently due to performance and memory usage problems with Docker.
|
|
|
|
# - '8000-8500:8000-8500'
|
2017-09-02 20:34:47 +02:00
|
|
|
- '8000:8000'
|
|
|
|
- '8005:8005'
|
|
|
|
- '8006:8006'
|
|
|
|
- '8010:8010'
|
|
|
|
- '8015:8015'
|
|
|
|
- '8016:8016'
|
|
|
|
- '8020:8020'
|
|
|
|
- '8025:8025'
|
|
|
|
- '8026:8026'
|
|
|
|
- '8030:8030'
|
|
|
|
- '8035:8035'
|
|
|
|
- '8036:8036'
|
|
|
|
- '8040:8040'
|
|
|
|
- '8045:8045'
|
|
|
|
- '8046:8046'
|
|
|
|
- '8050:8050'
|
|
|
|
- '8055:8055'
|
|
|
|
- '8056:8056'
|
|
|
|
- '8060:8060'
|
|
|
|
- '8065:8065'
|
|
|
|
- '8066:8066'
|
|
|
|
- '8070:8070'
|
|
|
|
- '8075:8075'
|
|
|
|
- '8076:8076'
|
|
|
|
- '8090:8090'
|
|
|
|
- '8095:8095'
|
|
|
|
- '8096:8096'
|
2017-05-30 12:45:48 +02:00
|
|
|
volumes:
|
2017-05-31 06:14:58 +02:00
|
|
|
- station_data:/var/azuracast/stations
|
2018-09-27 19:29:05 +02:00
|
|
|
- shoutcast2_install:/var/azuracast/servers/shoutcast2
|
2018-01-02 02:07:38 +01:00
|
|
|
- nginx_letsencrypt_certs:/etc/nginx/ssl:ro
|
2018-03-20 00:44:43 +01:00
|
|
|
init: true
|
2017-06-02 17:09:38 +02:00
|
|
|
restart: always
|
2018-10-25 04:55:51 +02:00
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "1m"
|
|
|
|
max-file: "5"
|
2017-05-31 06:14:58 +02:00
|
|
|
|
2017-05-30 12:45:48 +02:00
|
|
|
volumes:
|
2017-12-16 15:30:48 +01:00
|
|
|
nginx_letsencrypt_certs: {}
|
|
|
|
nginx_letsencrypt_www: {}
|
2017-06-01 13:20:33 +02:00
|
|
|
db_data: {}
|
|
|
|
influx_data: {}
|
2017-08-17 20:28:48 +02:00
|
|
|
station_data: {}
|
2018-09-27 19:29:05 +02:00
|
|
|
shoutcast2_install: {}
|
2018-01-19 13:09:30 +01:00
|
|
|
www_data: {}
|
2018-07-10 20:59:31 +02:00
|
|
|
tmp_data: {}
|