mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
baaf9577da
* 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
24 lines
399 B
YAML
24 lines
399 B
YAML
version: '3.1'
|
|
|
|
services:
|
|
nginx:
|
|
image: nginx:latest
|
|
volumes:
|
|
- ./nginx:/etc/nginx/conf.d/
|
|
- ./app/YtManagerApp/static:/www/static
|
|
ports:
|
|
- "80:80"
|
|
depends_on:
|
|
- web
|
|
|
|
web:
|
|
build: .
|
|
env_file:
|
|
- sqlite3.env.env
|
|
tty: true
|
|
ports:
|
|
- "8000:8000"
|
|
volumes:
|
|
- ./media:/usr/src/app/data/media
|
|
- ./db:/usr/src/app/data/db
|