mirror of
				https://github.com/chibicitiberiu/ytsm.git
				synced 2024-02-24 05:43:31 +00:00 
			
		
		
		
	* Ignore .dist folder used by visual studio code * Add example env file * Added environment variables * Ignore env file * Added default name to be ytmanager instead * Default to postgres * Update example env for postgres instead of sqlite * Added default as postgres as well in settings * Add volume for sqlite3 database storage (incase desired) * Added example env file for sqlite3 configuration * whitespace for sanity of my own * Add database_url as an optional env variable * hopefully working towards chibicitiberiu/ytsm#6 * Added default command * Expose 8000 * Added environment variable prefixes * added environment variable to parse for dj_database_url * Take out command in docker-compose since it's already in the Dockerfile as a cmd * SQLite as default * Create Docker README with information about how to run with Docker * Took out postgres. If people desire it, they can add it themselves. * Took out db depenednecy for docker-compose * Change cmd * Fixed up commands to run better in readme * Added underscore to Docker_README * Change default .db file location
		
			
				
	
	
		
			27 lines
		
	
	
		
			605 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			605 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3
 | 
						|
 | 
						|
WORKDIR /usr/src/app
 | 
						|
 | 
						|
RUN apt-get update
 | 
						|
RUN apt-get install ffmpeg -y
 | 
						|
 | 
						|
COPY ./app/requirements.txt ./ 
 | 
						|
RUN pip install --no-cache-dir -r requirements.txt
 | 
						|
 | 
						|
ENV YTSM_DATABASE_ENGINE='django.db.backends.sqlite3'
 | 
						|
ENV YTSM_DATABASE_NAME='/usr/src/app/data/db/ytmanager.db'
 | 
						|
ENV YTSM_DATABASE_HOST=''
 | 
						|
ENV YTSM_DATABASE_USERNAME=''
 | 
						|
ENV YTSM_DATABASE_PASSWORD=''
 | 
						|
ENV YTSM_DATABASE_PORT=''
 | 
						|
ENV YTSM_YOUTUBE_API_KEY='AIzaSyBabzE4Bup77WexdLMa9rN9z-wJidEfNX8'
 | 
						|
 | 
						|
VOLUME /usr/src/app/data/media
 | 
						|
VOLUME /usr/src/app/data/db
 | 
						|
 | 
						|
COPY ./app/ .
 | 
						|
COPY ./config/ ./config/
 | 
						|
 | 
						|
EXPOSE 8000
 | 
						|
 | 
						|
CMD ["/bin/bash", "init.sh"] |