Files
PYTV/docker-compose.yml

62 lines
1.4 KiB
YAML
Raw Normal View History

2026-03-08 11:28:59 -04:00
version: "3.9"
services:
db:
image: postgres:16
environment:
POSTGRES_USER: pytv_user
POSTGRES_PASSWORD: pytv_password
POSTGRES_DB: pytv_db
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/app
2026-03-09 13:29:23 -04:00
- ./mock:/mock
- ./cache:/tmp/pytv_cache
2026-03-20 15:00:24 -04:00
- ./backups:/Backups
2026-03-08 11:28:59 -04:00
ports:
- "8000:8000"
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
2026-03-09 13:29:23 -04:00
cache_worker:
build: .
command: python manage.py run_cache_worker
volumes:
- .:/app
- ./mock:/mock
- ./cache:/tmp/pytv_cache
2026-03-20 15:00:24 -04:00
- ./backups:/Backups
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
backup_worker:
build: .
command: python manage.py run_backup_worker --interval 60
volumes:
- .:/app
- ./backups:/Backups
2026-03-09 13:29:23 -04:00
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
2026-03-08 11:28:59 -04:00
volumes:
postgres_data: