feat(main): main
This commit is contained in:
@@ -17,6 +17,8 @@ services:
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./mock:/mock
|
||||
- ./cache:/tmp/pytv_cache
|
||||
ports:
|
||||
- "8000:8000"
|
||||
environment:
|
||||
@@ -26,5 +28,19 @@ services:
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
cache_worker:
|
||||
build: .
|
||||
command: python manage.py run_cache_worker
|
||||
volumes:
|
||||
- .:/app
|
||||
- ./mock:/mock
|
||||
- ./cache:/tmp/pytv_cache
|
||||
environment:
|
||||
- DEBUG=True
|
||||
- SECRET_KEY=django-insecure-development-key-replace-in-production
|
||||
- DATABASE_URL=postgres://pytv_user:pytv_password@db:5432/pytv_db
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user