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!
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:
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.
Assuming your volume is already mounted (for example, at /mnt/volume-nyc1-123), SSH into your droplet using a terminal.
Create a new directory for your AzuraCast data on the volume with:
- sudo mkdir /mnt/volume-nyc1-123/azuracast_data
Stop the AzuraCast Docker containers by running:
- cd /var/azuracast && sudo docker-compose down
Copy the existing AzuraCast data to the new directory:
- sudo cp -r /var/azuracast/stations /mnt/volume-nyc1-123/azuracast_data/
Update the “AZURACAST_STATIONS_DIR” environment variable in /var/azuracast/docker-compose.yml to point to the new directory. Here’s an example:
- environment:
- - AZURACAST_DB_HOST=db
- - AZURACAST_DB_PORT=3306
- - AZURACAST_DB_NAME=azuracast
- - AZURACAST_DB_USERNAME=azuracast
- - AZURACAST_DB_PASSWORD=****
- - AZURACAST_STATIONS_DIR=/mnt/volume-nyc1-123/azuracast_data/stations
- - AZURACAST_BACKUP_DIR=/mnt/volume-nyc1-123/azuracast_data/
Restart the AzuraCast Docker containers by running:
- 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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.