mirror of https://github.com/tiyn/wiki
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.9 KiB
65 lines
1.9 KiB
# linuxserver - airsonic
|
|
|
|
This is a [Docker](/wiki/docker.md) container for a [airsonic](../airsonic.md)
|
|
server.
|
|
The official container and documentation was made by
|
|
[linuxserver](https://hub.docker.com/r/linuxserver/airsonic).
|
|
|
|
## Set-up
|
|
|
|
Create the file `rebuild.sh`.
|
|
Change the settings according to your needs and run `./rebuild.sh` afterwards.
|
|
|
|
## Environment-variables
|
|
|
|
Set the following variables with the -e tag.
|
|
|
|
| Name | Usage | Default |
|
|
| ------ | -------- | ------- |
|
|
| `PUID` | UserID | |
|
|
| `PGID` | GroupID | |
|
|
| `TZ` | Timezone | |
|
|
|
|
## Volumes
|
|
|
|
Set the following volumes with the -v tag.
|
|
|
|
| Outside mount/volume name | Container mount | Description |
|
|
| ------------------------- | --------------- | ----------------------- |
|
|
| `airsonic_config` | `/config` | Configuration files |
|
|
| `airsonic_media` | `/media` | Various other media |
|
|
| `media_playlists` | `/playlists` | Location for playlists |
|
|
| `media_music` | `/music` | Location for music |
|
|
| `media_audiobooks` | `/audiobooks` | Location for audiobooks |
|
|
| `media_podcasts` | `/podcasts` | location for podcasts |
|
|
|
|
## Ports
|
|
|
|
Set the following ports with the -p tag.
|
|
|
|
| Container Port | Recommended outside port | Protocol | Description |
|
|
| -------------- | ------------------------ | -------- | ----------- |
|
|
| `4040` | `4040` | TCP | WebUI |
|
|
|
|
## rebuild.sh
|
|
|
|
```sh
|
|
#!/bin/sh
|
|
docker stop airsonic
|
|
docker rm airsonic
|
|
docker pull linuxserver/airsonic
|
|
docker run --name=airsonic \
|
|
--restart unless-stopped \
|
|
-p 4040:4040 \
|
|
-v airsonic_config:/config \
|
|
-v airsonic_media:/media \
|
|
-v media_playlists:/playlists \
|
|
-v media_music:/music \
|
|
-v media_audiobooks:/audiobooks \
|
|
-v media_podcasts:/podcasts \
|
|
-e PUID=0 \
|
|
-e PGID=0 \
|
|
-e TZ=Europe/Berlin \
|
|
-d linuxserver/airsonic
|
|
```
|