2017-06-01 11:20:33 +00:00
|
|
|
version: '2'
|
2017-05-30 10:45:48 +00:00
|
|
|
|
|
|
|
services:
|
2018-02-23 20:40:04 +00:00
|
|
|
web:
|
|
|
|
image: azuracast/azuracast_web:latest
|
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- influxdb
|
|
|
|
- stations
|
|
|
|
- redis
|
|
|
|
environment: &default-environment
|
|
|
|
APPLICATION_ENV: "production" # "production" or "development"
|
|
|
|
MYSQL_HOST: "mariadb" # You can change this if you plan to connect to an external DB host.
|
|
|
|
MYSQL_PORT: 3306 # ^
|
|
|
|
MYSQL_USER: "azuracast" # Once the database has been installed, don't change this.
|
|
|
|
MYSQL_PASSWORD: "azur4c457" # ^
|
|
|
|
MYSQL_DATABASE: "azuracast" # ^
|
|
|
|
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
|
|
|
|
volumes:
|
|
|
|
- www_data:/var/azuracast/www
|
|
|
|
- tmp_data:/var/azuracast/www_tmp
|
|
|
|
- station_data:/var/azuracast/stations
|
|
|
|
restart: always
|
|
|
|
|
2017-05-31 04:14:58 +00:00
|
|
|
nginx:
|
2017-06-02 09:57:42 +00:00
|
|
|
image: azuracast/azuracast_nginx:latest
|
2017-05-31 04:14:58 +00:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
|
|
|
depends_on:
|
2017-05-31 15:47:19 +00:00
|
|
|
- web
|
2017-06-01 10:25:15 +00:00
|
|
|
- stations
|
2017-05-31 04:14:58 +00:00
|
|
|
volumes:
|
2018-01-19 12:09:30 +00:00
|
|
|
- www_data:/var/azuracast/www
|
2017-12-16 14:30:48 +00:00
|
|
|
- nginx_letsencrypt_certs:/etc/nginx/ssl
|
|
|
|
- nginx_letsencrypt_www:/var/www/letsencrypt
|
2017-06-02 15:09:38 +00:00
|
|
|
restart: always
|
2017-05-31 04:14:58 +00:00
|
|
|
|
2017-12-16 14:30:48 +00:00
|
|
|
# docker-compose run --rm letsencrypt \
|
2017-12-16 15:44:52 +00:00
|
|
|
# certonly --webroot -w /var/www/letsencrypt
|
2017-12-16 14:30:48 +00:00
|
|
|
letsencrypt:
|
|
|
|
image: certbot/certbot
|
|
|
|
command: /bin/true
|
|
|
|
volumes:
|
|
|
|
- nginx_letsencrypt_certs:/etc/letsencrypt
|
|
|
|
- nginx_letsencrypt_www:/var/www/letsencrypt
|
|
|
|
|
2017-05-31 04:14:58 +00:00
|
|
|
mariadb:
|
2017-06-02 06:19:17 +00:00
|
|
|
image: mariadb:latest
|
2017-05-31 04:14:58 +00:00
|
|
|
volumes:
|
|
|
|
- db_data:/var/lib/mysql
|
|
|
|
environment:
|
2018-02-23 20:28:05 +00:00
|
|
|
<< : *default-environment
|
2017-06-02 15:09:38 +00:00
|
|
|
restart: always
|
2017-05-31 04:14:58 +00:00
|
|
|
|
|
|
|
influxdb:
|
2017-06-02 06:19:17 +00:00
|
|
|
image: influxdb:alpine
|
2017-05-31 04:14:58 +00:00
|
|
|
volumes:
|
|
|
|
- influx_data:/var/lib/influxdb
|
2017-06-02 15:09:38 +00:00
|
|
|
restart: always
|
2017-05-31 04:14:58 +00:00
|
|
|
|
2017-06-04 10:56:20 +00:00
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
|
2017-05-31 15:47:19 +00:00
|
|
|
cron:
|
2017-06-03 14:56:55 +00:00
|
|
|
container_name: azuracast_cron
|
2017-06-02 09:57:42 +00:00
|
|
|
image: azuracast/azuracast_web:latest
|
2017-06-03 14:56:55 +00:00
|
|
|
volumes_from:
|
|
|
|
- web
|
2017-05-31 15:47:19 +00:00
|
|
|
depends_on:
|
2017-06-01 12:18:13 +00:00
|
|
|
- mariadb
|
|
|
|
- influxdb
|
|
|
|
- stations
|
2017-06-04 10:56:20 +00:00
|
|
|
- redis
|
2018-02-23 20:28:05 +00:00
|
|
|
environment:
|
|
|
|
<< : *default-environment
|
2017-06-03 14:56:55 +00:00
|
|
|
command: 'cron && tail -f /var/log/cron.log'
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
cli:
|
|
|
|
image: azuracast/azuracast_web:latest
|
|
|
|
volumes_from:
|
|
|
|
- web
|
2017-06-01 12:18:13 +00:00
|
|
|
depends_on:
|
|
|
|
- mariadb
|
|
|
|
- influxdb
|
|
|
|
- stations
|
2017-06-04 10:56:20 +00:00
|
|
|
- redis
|
2018-02-23 20:28:05 +00:00
|
|
|
environment:
|
|
|
|
<< : *default-environment
|
2017-10-22 00:29:38 +00:00
|
|
|
user: 'azuracast'
|
|
|
|
working_dir: '/var/azuracast/www'
|
2017-06-03 14:56:55 +00:00
|
|
|
command: 'bash'
|
2017-05-31 04:14:58 +00:00
|
|
|
|
|
|
|
stations:
|
2017-06-03 14:56:55 +00:00
|
|
|
container_name: azuracast_stations
|
2017-06-02 09:57:42 +00:00
|
|
|
image: azuracast/azuracast_stations:latest
|
2017-05-30 10:45:48 +00:00
|
|
|
ports:
|
2017-09-02 18:34:47 +00: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'
|
|
|
|
- '8080:8080'
|
|
|
|
- '8085:8085'
|
|
|
|
- '8086:8086'
|
|
|
|
- '8090:8090'
|
|
|
|
- '8095:8095'
|
|
|
|
- '8096:8096'
|
2017-05-30 10:45:48 +00:00
|
|
|
volumes:
|
2017-05-31 04:14:58 +00:00
|
|
|
- station_data:/var/azuracast/stations
|
2018-01-02 01:07:38 +00:00
|
|
|
- nginx_letsencrypt_certs:/etc/nginx/ssl:ro
|
2017-06-02 15:09:38 +00:00
|
|
|
restart: always
|
2017-05-31 04:14:58 +00:00
|
|
|
|
2017-05-30 10:45:48 +00:00
|
|
|
volumes:
|
2017-12-16 14:30:48 +00:00
|
|
|
nginx_letsencrypt_certs: {}
|
|
|
|
nginx_letsencrypt_www: {}
|
2017-06-01 11:20:33 +00:00
|
|
|
db_data: {}
|
|
|
|
influx_data: {}
|
2017-08-17 18:28:48 +00:00
|
|
|
station_data: {}
|
2018-01-19 12:09:30 +00:00
|
|
|
www_data: {}
|
2017-08-17 18:28:48 +00:00
|
|
|
tmp_data: {}
|