Changed based on feedback in chibicitiberiu/ytsm#27

This commit is contained in:
Brandon 2018-11-08 17:25:00 -08:00
parent 82b3eb4c3c
commit a5de3bf6cb
No known key found for this signature in database
GPG Key ID: F7B1F4C1945CAF03
4 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ Running with Docker
Sample Run command
-----
```bash
docker run -d --name ytsm -p 80:8000 --volume ./downloads:/usr/src/app/data/downloads chibicitiberiu/ytsm:latest
docker run -d --name ytsm -p 80:8000 --volume /media/ytsm/data:/usr/src/ytsm/data --volume /media/ytsm/config:/usr/src/ytsm/config chibicitiberiu/ytsm:latest
```
### Quick Rundown:
- `--expose 80:8000` maps the Host OS port 80 to the container port 80

View File

@ -17,7 +17,6 @@ VOLUME /usr/src/ytsm/data
COPY ./app/ ./
COPY ./docker/init.sh ./
COPY ./config/ /usr/src/ytsm/config/
EXPOSE 8000

View File

@ -126,11 +126,13 @@ CONFIG_DIR = os.path.join(PROJECT_ROOT, "config")
DATA_DIR = os.path.join(PROJECT_ROOT, "data")
STATIC_ROOT = os.path.join(PROJECT_ROOT, "static")
_DEFAULT_CONFIG_DIR = os.path.join(BASE_DIR, "default")
_DEFAULT_CONFIG_FILE = os.path.join(CONFIG_DIR, 'config.ini')
_DEFAULT_LOG_FILE = os.path.join(DATA_DIR, 'log.log')
_DEFAULT_MEDIA_ROOT = os.path.join(DATA_DIR, 'media')
DEFAULTS_FILE = os.path.join(CONFIG_DIR, 'defaults.ini')
DEFAULTS_FILE = os.path.join(_DEFAULT_CONFIG_DIR, 'defaults.ini')
CONFIG_FILE = os.getenv('YTSM_CONFIG_FILE', _DEFAULT_CONFIG_FILE)
#