AzuraCast is a self-hosted, all-in-one web radio management suite. Using its easy installer and powerful, but intuitive web interface, you can start up a fully working web radio station in a few quick minutes. AzuraCast works for web radio stations of all types and sizes, and is built to run on every NAS device. In this step by step guide I will show you how to install AzuraCast on your Synology NAS using Docker & Portainer.
AzuraCast v0.19.0 release.
This guide works perfectly with the latestSTEP 1
Please Support My work by Making a Donation.
STEP 2
Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.
STEP 3
Make sure you have a synology.me Wildcard Certificate. Follow my guide to get a Wildcard Certificate. If you already have a synology.me Wildcard certificate, skip this STEP.
STEP 4
Go to Control Panel / Login Portal / Advanced Tab / click Reverse Proxy. Follow the instructions in the image below.
STEP 5
Now click the “Create” button. Follow the instructions in the image below.
STEP 6
After you click the Create button, the window below will open. Follow the instructions in the image below.
On the General area, set the Reverse Proxy Name description: type in AzuraCast. After that, add the following instructions:
Source:
Protocol: HTTPS
Hostname: azuracast.yourname.synology.me
Port: 443
Check Enable HSTS
Destination:
Protocol: HTTP
Hostname: localhost
Port: 8421
STEP 7
On the Reverse Proxy Rules click the Custom Header tab. Click Create and then, from the drop-down menu, click WebSocket. After you click on WebSocket, two Header Names and two Values will be automatically added. Click Save. Follow the instructions in the image below.
STEP 8
Go to Control Panel / Network / Connectivity tab/ Check Enable HTTP/2 then click Apply. Follow the instructions in the image below.
STEP 9
Go to Control Panel / Security / Advanced tab/ Check Enable HTTP Compression then click Apply. Follow the instructions in the image below.
STEP 10
Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it azuracast. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 11
Now create eleven new folders inside the azuracast folder that you created at STEP 10 and name them acme, backups, dbconfig, dbmysql, geoip, persist, redis, shoutcast, stations, stereo, uploads. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.
STEP 12
Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.
STEP 13
In the Name field type in azuracast. Follow the instructions in the image below.
version: "3.9" services: azuracast-redis: image: redis container_name: AzuraCast-REDIS hostname: azuracast-redis security_opt: - no-new-privileges:true healthcheck: test: ["CMD-SHELL", "redis-cli ping || exit 1"] user: 1026:100 environment: - TZ=Europe/Bucharest volumes: - /volume1/docker/azuracast/redis:/data restart: always azuracast-db: image: mariadb:11.3-jammy container_name: AzuraCast-DB hostname: azuracast-db security_opt: - no-new-privileges:true environment: - TZ=Europe/Bucharest - MYSQL_ROOT_PASSWORD=azuracastrootpw - MYSQL_DATABASE=azuracast - MYSQL_USER=azuracastuser - MYSQL_PASSWORD=azuracastpw - MYSQL_SLOW_QUERY_LOG=0 - MYSQL_MAX_CONNECTIONS=100 volumes: - /volume1/docker/azuracast/dbconfig:/var/lib/mysql:rw restart: always azuracast: image: azuracast/azuracast:latest container_name: AzuraCast hostname: azuracast security_opt: - no-new-privileges:true ulimits: nofile: soft: 65536 hard: 65536 logging: options: max-size: "1m" max-file: "5" healthcheck: test: wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1 ports: - 8421:80 - 8111:8000 - 8119:8005 - 8113:8006 - 8114:8010 - 8115:8015 - 8116:8016 - 8117:8020 environment: - APPLICATION_ENV=production - MYSQL_HOST=azuracast-db - MYSQL_PORT=3306 - MYSQL_USER=azuracastuser - MYSQL_PASSWORD=azuracastpw - MYSQL_DATABASE=azuracast - ENABLE_REDIS=true - REDIS_HOST=azuracast-redis - REDIS_PORT=6379 - REDIS_DB=1 - PROFILING_EXTENSION_HTTP_IP_WHITELIST=* - TZ=Europe/Bucharest - PUID=1026 - PGID=100 volumes: - /volume1/docker/azuracast/uploads:/var/azuracast/uploads - /volume1/docker/azuracast/stations:/var/azuracast/stations - /volume1/docker/azuracast/shoutcast:/var/azuracast/servers/shoutcast2 - /volume1/docker/azuracast/stereo:/var/azuracast/servers/stereo_tool - /volume1/docker/azuracast/geoip:/var/azuracast/geoip - /volume1/docker/azuracast/persist:/var/azuracast/sftpgo/persist - /volume1/docker/azuracast/backups:/var/azuracast/backups - /volume1/docker/azuracast/acme:/var/azuracast/acme - /volume1/docker/azuracast/dbmysql:/var/lib/mysql restart: always depends_on: azuracast-redis: condition: service_healthy azuracast-db: condition: service_started
Note: Before you paste the code above in the Web editor area below, change the value numbers for user with your own UID and GID values. (Follow my step by step guide on how to do this.) 1026 is my personal UID value and 100 is my personal GID value. You have to type in your own values.
Note: Before you paste the code above in the Web editor area below, change the value for TZ. (Select your current Time Zone from this list.)
Note: Before you paste the code above in the Web editor area below, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.) 1026 is my personal PUID value and 100 is my personal PGID value. You have to type in your own values.
STEP 14
Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.
STEP 15
If everything goes right, you will see the following message at the top right of your screen: “Success Stack successfully deployed“.
STEP 16
Go back to STEP 1 or you will deal with karma 🙂.
STEP 17
Please wait approximately 5-10 minutes for the installation to be completed or you will get a blank page if you try to connect too soon. Now open your browser and type in your HTTPS/SSL certificate like this https://azuracast.yourname.synology.me In my case it’s https://azuracast.mariushosting.synology.me If everything goes right, you will see the AzuraCast Setup page. Type in your own Email and your own Password then click CREATE ACCOUNT. Follow the instructions in the image below.
STEP 18
Add your first Radio Station. Give it a Name an Description then select your Time Zone. Add Web Site URL if you have one then scroll down the page a little bit. Follow the instructions in the image below.
STEP 19
Check Enable Public Pages. Check Enable On-Demand Streaming. Check Enable Downloads on On-Demand Page. Click CREATE ACCOUNT. Follow the instructions in the image below.
STEP 20
On the Site BASE URL area type in your own synology.me DDNS that you have previously created at STEP 6 with https:// at the beginning. Type in your own AzuraCast instance name then check Use Web Proxy for Radio. Click SAVE AND CONTINUE. Follow the instructions in the image below.
STEP 21
At the top right of the page click on the menu icon the select Switch Theme for Dark Mode. Follow the instructions in the image below.
Your Radio Station is ready!
AzuraCast at a glance!
Enjoy AzuraCast!
Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the AzuraCast container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.
This post was updated on Monday / June 10th, 2024 at 12:42 PM