Environment Variables and Docker standalone support (#21)

* 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
This commit is contained in:
Brandon
2018-10-31 08:57:32 -07:00
committed by chibicitiberiu
parent 092949ff9c
commit baaf9577da
7 changed files with 81 additions and 22 deletions

7
.gitignore vendored
View File

@ -1,6 +1,7 @@
.vs
.vscode
temp/
env.env
# Byte-compiled / optimized / DLL files
__pycache__/
@ -115,3 +116,9 @@ venv.bak/
dmypy.json
media/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json