How to Install AzuraCast on Fedora CoreOS Latest

AzuraCast is a free, self-hosted web radio management suite that lets you run a complete web radio station with various features. Fedora CoreOS is a lightweight, container-focused operating system designed for cluster deployments, which makes it an excellent choice for hosting web applications like AzuraCast. In this tutorial, we’ll show you how to install AzuraCast on the latest version of Fedora CoreOS using Docker.

Prerequisites

Before you start, you should have:

Step 1: Clone the AzuraCast Repository

The first thing you need to do is clone the AzuraCast repository to your Fedora CoreOS instance.

git clone https://github.com/AzuraCast/AzuraCast.git

Once the repository has been cloned, you should see a new directory named “AzuraCast” in your home directory.

Step 2: Configure the AzuraCast Environment Variables

Next, navigate to the cloned AzuraCast directory and create a new file named .env.

cd AzuraCast
touch .env

Open the file in your favorite text editor and copy the following environment variables. Replace the values with your own where specified.

# AzuraCast Environment Variables
APP_ENV=production
AZURACAST_VERSION=stable
INSTANCE_ID=instance-1
INITIAL_SETUP_COMPLETE=0
FORCE_HTTPS=0

# MySQL Environment Variables
MYSQL_ROOT_PASSWORD=<Your-MySQL-Root-Password>
MYSQL_DATABASE=azuracast
MYSQL_USER=azuracast
MYSQL_PASSWORD=<Your-MySQL-AzuraCast-Password>

# Docker Environment Variables
DOCKER_LOCAL_NETWORK=azuracast
DOCKER_FRONTEND_CONFIG=traefik.frontend.rule=Host:<Your-AzuraCast-Domain-Name>
DOCKER_TRAEFIK_NETWORK=traefik_proxy

In this environment file, we’re defining environment variables for different components of the AzuraCast system. For instance, the MYSQL_ROOT_PASSWORD environment variable is used to specify the password for the MySQL root user, while the DOCKER_FRONTEND_CONFIG environment variable configures the frontend rule for Traefik.

Once you have entered the environment variables, save the file and exit the text editor.

Step 3: Start the AzuraCast Server

Next, start the AzuraCast server by running the following command:

docker-compose up -d

This command will download all the necessary components and start the AzuraCast service in the background. Once the command is executed successfully, you can check the status of the service by running the following command:

docker-compose ps

This command will display the status of all the containers associated with the AzuraCast service.

Step 4: Visit the AzuraCast Web Interface

You can now access the AzuraCast web interface by visiting your server’s public IP address or domain name in your web browser.

http://<Your-AzuraCast-Domain-Name>/

You should now see the AzuraCast login page. Login to the interface with the default username and password:

Conclusion

That’s it! You have successfully installed AzuraCast on Fedora CoreOS using Docker. You can now configure your radio station, playlists, and broadcast your content to the world!

Further Reading

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!