Skip to content

Docker container for UnTube application. A simple and comprehensive YouTube playlist management web application powered by the YouTube V3 data API.

Notifications You must be signed in to change notification settings

noelaridan/UnTube-Docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnTube Docker

Dockerfile and docker-compose file to try the UnTube web application.

Untube is a simple and comprehensive YouTube playlist management web application powered by the YouTube V3 data API, created by sleepytaco using Django, htmx and Bootstrap.

Prerequisites

  • Docker must be installed on the host machine.
  • Docker-compose must also be installed if you want to deploy the application via the docker-compose file.

Usage

Import the project, and enter to the following directory:

git clone https://github.com/noelaridan/UnTube-Docker.git
cd UnTube-Docker

Edit ALLOWED_HOSTS in the webapp/UnTube/settings.py file.

nano webapp/UnTube/settings.py

Add a domain name to be able to connect via the YouTube API.

For example:

ALLOWED_HOSTS = ['127.0.0.1', 'your-domain.com']

Then change YOUTUBE_V3_API_KEY, GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET in the webapp/UnTube/secrets.py file.

nano webapp/UnTube/secrets.py

For example:

# Make sure you change these before production or to run this project on your own machine ;)
SECRETS = {"SECRET_KEY": 'django-insecure-ycs22y+20sq67y(6dm6ynqw=dlhg!)%vuqpd@$p6rf3!#1h$u=',
           "YOUTUBE_V3_API_KEY": 'your-youtube-api-key',
           "GOOGLE_OAUTH_CLIENT_ID": "your-oauth-client-id",
           "GOOGLE_OAUTH_CLIENT_SECRET": "your-oauth-client-secret",
           "GOOGLE_OAUTH_SCOPES": ['https://www.googleapis.com/auth/youtube']}

Using docker run

Build the docker image:

docker build -t untube .

Then enter the following command to start the container by changing the path of the sqlite file:

docker run -d --name untube -p 8000:8000 -v /{absolute-path}/db/db.sqlite3:/app/db.sqlite3 untube

Finally, type in your search engine, the address corresponding to the one in the settings.py file.

Using docker-compose (recommended)

Enter the following command to start the container:

docker-compose up -d

Finally, Type in your search engine, the address corresponding to the one in the settings.py file.

About

Docker container for UnTube application. A simple and comprehensive YouTube playlist management web application powered by the YouTube V3 data API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • HTML 24.1%
  • SCSS 19.6%
  • Less 17.8%
  • Python 17.1%
  • CSS 10.8%
  • JavaScript 10.5%
  • Dockerfile 0.1%