Report this

What is the reason for this report?

Azuracast and storage volume

Posted on June 23, 2020

Hi, I have installed Azuracast from the 1 click installation (docker) i added a 300gb volume. is there a way I can point so that the data of the station will be stored in that volume and not the default server? if so how and what are the paths etc? a little help for this noob will be awesome



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

To change the storage location of your radio station’s data in an AzuraCast installation, follow the steps below:

  1. Attach the 300GB volume to your droplet. If you haven’t done this yet, please follow the guide here: How to Automatically Mount DigitalOcean Volumes.

  2. Assuming your volume is already mounted (for example, at /mnt/volume-nyc1-123), SSH into your droplet using a terminal.

  3. Create a new directory for your AzuraCast data on the volume with:

    1. sudo mkdir /mnt/volume-nyc1-123/azuracast_data
  4. Stop the AzuraCast Docker containers by running:

    1. cd /var/azuracast && sudo docker-compose down
  5. Copy the existing AzuraCast data to the new directory:

    1. sudo cp -r /var/azuracast/stations /mnt/volume-nyc1-123/azuracast_data/
  6. Update the “AZURACAST_STATIONS_DIR” environment variable in /var/azuracast/docker-compose.yml to point to the new directory. Here’s an example:

    1. environment:
    2. - AZURACAST_DB_HOST=db
    3. - AZURACAST_DB_PORT=3306
    4. - AZURACAST_DB_NAME=azuracast
    5. - AZURACAST_DB_USERNAME=azuracast
    6. - AZURACAST_DB_PASSWORD=****
    7. - AZURACAST_STATIONS_DIR=/mnt/volume-nyc1-123/azuracast_data/stations
    8. - AZURACAST_BACKUP_DIR=/mnt/volume-nyc1-123/azuracast_data/
  7. Restart the AzuraCast Docker containers by running:

    1. cd /var/azuracast && sudo docker-compose up -d

Now, your AzuraCast data should be stored on the volume instead of the default server storage. For more information, check out the AzuraCast documentation about external storage.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.