Installing AzuraCast on your own server
AzuraCast is a free open-source system for internet radio (AutoDJ, streams, statistics). Vambi WebDJ plugs into it as an add-on. This guide walks you through installing it on your own server or VPS. All commands are typed in the Terminal on a Mac or Linux via ssh.
1. What you will need
- A server or VPS with a 64-bit CPU (x86_64 or ARM64) and a clean install of Ubuntu LTS or Debian. We recommend a server without Docker preinstalled.
- Memory: at least 2 GB RAM, 4 GB recommended. Disk: at least 20 GB, 40 GB or more recommended – music takes up the most space.
- A domain (e.g.
radio.mojestanice.cz) pointed to the server's IP address with an A record. - Open ports: 80 and 443 (web, HTTPS), 8000–8999 (station streams and live broadcasting), optionally 2022 for uploading music via SFTP.
- Note: OpenVZ / LXC virtual servers often don't work with Docker – choose a KVM VPS or a physical server.
2. Connecting to the server
On a Mac open Terminal (Applications → Utilities), on Linux any terminal:
ssh root@IP_ADRESA_SERVERU
If you log in as a regular user, put this before the commands: sudo. First update the system and install the required tools:
apt update && apt -y upgrade
apt -y install curl git
3. Installing AzuraCast
Official installation via Docker (downloads the installer script and starts the wizard):
mkdir -p /var/azuracast
cd /var/azuracast
curl -fsSL https://raw.githubusercontent.com/AzuraCast/AzuraCast/main/docker.sh > docker.sh
chmod a+x docker.sh
./docker.sh install
The wizard asks for the release channel – we recommend Stable (the stable version). Installation takes a few minutes and installs Docker for you.
4. First start
- In your browser open
http://IP_ADRESA_SERVERU(or your domain). - Create an administrator account (e-mail and password).
- Create your first station: name, short name (used in the address, e.g.
mojeradio), stream format and bitrate (MP3 or AAC at 128–192 kbps recommended). - V System settings enter the site address (Site Base URL) – e.g.
https://radio.mojestanice.cz.
5. HTTPS (security)
In the AzuraCast administration open Administration → System Settings → Services (or the Let's Encrypt section), enter the domain and e-mail and save. AzuraCast issues the certificate and renews it by itself. The domain must already point to the server.
6. Settings for Vambi WebDJ
- Live broadcasting: enable Streamers/DJs (presenters) for the station and create an account for the presenter – WebDJ connects to the broadcast with this name and password.
- Music: upload it in Media → Music Files (or later right in WebDJ in Production mode) and create playlists for AutoDJ.
- API key (recommended): My Account → API Keys → Add. Then enter the key in WebDJ under Settings – it enables managing the library and playlists and writing song cue points.
- Webhook (optional): for sending now-playing information to your website.
7. Adding Vambi WebDJ
See the guide Installing WebDJ in AzuraCast. In short: paste the code from your account on this website into Administration → Branding → Custom JS for Public Pages.
8. Updating AzuraCast
cd /var/azuracast
./docker.sh update-self
./docker.sh update
Make a backup before a major update. Vambi WebDJ updates itself through the loader – you don't need to do anything in AzuraCast.
9. Backups
In the AzuraCast administration set up Administration → Backups – an automatic daily backup of the database and settings. Back up the music separately (it lives in the station's Docker volume), e.g. by syncing over SFTP to another disk. Manual backup from the terminal:
cd /var/azuracast
./docker.sh backup
Tips
- Server at home: mind your upload speed – each listener at 128 kbps needs about 0.13 Mbps. So 50 listeners need ~7 Mbps of upload.
- Low on memory? Add swap – the AzuraCast documentation recommends it for servers with 2 GB RAM.
- Detailed official documentation (in English): azuracast.com/docs.