FEATURE: Now using configurable CONFIG and VERSION
This commit is contained in:
@@ -1,13 +1,51 @@
|
|||||||
## Build
|
## About
|
||||||
|
|
||||||
```bash
|
This is a Docker image for [CouchPotato](https://couchpota.to/) - the awesome movie PVR for usenet and torrents.
|
||||||
git clone https://github.com/dbarton/docker-couchpotato.git
|
|
||||||
cd docker-couchpotato
|
## Configuration
|
||||||
docker build -t <tag> .
|
|
||||||
|
### Volumes
|
||||||
|
|
||||||
|
Mount the following volumes inside your container:
|
||||||
|
|
||||||
|
* `<datadir path>:/datadir`
|
||||||
|
* `<media path>:/media`
|
||||||
|
|
||||||
|
### Configuration file
|
||||||
|
|
||||||
|
By default the CouchPotato configuration is located on:
|
||||||
|
|
||||||
|
```
|
||||||
|
/datadir/config.ini
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you want to change this, set the `CONFIG` environment variable.
|
||||||
|
|
||||||
|
### CouchPotato Version
|
||||||
|
|
||||||
|
By default the latest CouchPotato version will be used by pointing at the `master` tree of the [CouchPotato git repository](https://github.com/RuudBurger/CouchPotatoServer).
|
||||||
|
If you want a different version you've set the `VERSION` environment variable to a valid git branch or tag.
|
||||||
|
|
||||||
|
_Please note that CouchPotato will automatically be updated when you restart your container._
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
|
|
||||||
|
### Run via docker CLI
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --name couchpotato -v <datadir path>:/datadir -v <media path>:/media dbarton/couchpotato
|
docker run --name couchpotato -v <datadir path>:/datadir -v <media path>:/media dbarton/couchpotato
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Run via docker-compose
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
sabnzbd:
|
||||||
|
image: "dbarton/couchpotato"
|
||||||
|
container_name: "couchpotato"
|
||||||
|
volumes:
|
||||||
|
- "<datadir path>:/datadir"
|
||||||
|
- "<media path>:/media"
|
||||||
|
tty: true
|
||||||
|
stdin_open: true
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
@@ -1,7 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
echo 'Updating CouchPotato...'
|
if [[ -n "${VERSION}" ]]
|
||||||
|
then
|
||||||
|
echo "Checking out SABnzbd version '${VERSION}'..."
|
||||||
|
git checkout ${VERSION}
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Updating CouchPotato..."
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
echo 'Starting CouchPotato...'
|
CONFIG=${CONFIG:-/datadir/config.ini}
|
||||||
exec ./CouchPotato.py --data_dir=/datadir --config_file=/datadir/config.ini
|
echo "Starting CouchPotato with config '${CONFIG}'..."
|
||||||
|
exec ./CouchPotato.py --data_dir=/datadir --config_file=${CONFIG}
|
||||||
|
|||||||
Reference in New Issue
Block a user