Merge branch 'master' into fix_docker_run

This commit is contained in:
Brandon 2018-11-03 13:46:41 -07:00
commit 82b3eb4c3c
No known key found for this signature in database
GPG Key ID: F7B1F4C1945CAF03

View File

@ -4,11 +4,10 @@ Running with Docker
Sample Run command Sample Run command
----- -----
```bash ```bash
docker run -d --name ytsm -p 80:8000 --env-file sqlite3.env.env --volume ./downloads:/usr/src/app/data/downloads chibicitiberiu/ytsm:latest docker run -d --name ytsm -p 80:8000 --volume ./downloads:/usr/src/app/data/downloads chibicitiberiu/ytsm:latest
``` ```
### Quick Rundown: ### Quick Rundown:
- `--expose 80:8000` maps the Host OS port 80 to the container port 80 - `--expose 80:8000` maps the Host OS port 80 to the container port 80
- `--env-file sqlite3.env.env` points to the env file with the desired variable settings (saves from typing them in the command line)
- `--volume ./downloads:/usr/src/app/data/downloads` maps the downloads folder of the current directory to the container folder `downloads` (where you could set the program to download to) - `--volume ./downloads:/usr/src/app/data/downloads` maps the downloads folder of the current directory to the container folder `downloads` (where you could set the program to download to)
- `chibicitiberiu/ytsm:latest` tells Docker which image to run the container with (in this case, the latest version) - `chibicitiberiu/ytsm:latest` tells Docker which image to run the container with (in this case, the latest version)
@ -24,8 +23,8 @@ Environment variables
Volumes Volumes
----- -----
- /usr/src/app/data/media - /usr/src/app/data
- /usr/src/app/data/db - /usr/src/app/config
Notes Notes