first commit

This commit is contained in:
NORBOYEVSAMARIDDIN
2026-02-07 11:18:38 +05:00
commit 493cb58222
228 changed files with 10859 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
networks:
aparat:
driver: bridge
volumes:
pg_data: null
pycache: null
services:
web:
env_file:
- .env
networks:
- aparat
build:
context: .
dockerfile: ./docker/Dockerfile.web
restart: always
container_name: test_web
environment:
- PYTHONPYCACHEPREFIX=/var/cache/pycache
- SCRIPT=${SCRIPT:-entrypoint.sh}
volumes:
- pycache:/var/cache/pycache
depends_on:
- db
- redis
db:
networks:
- aparat
image: postgres:16
restart: always
container_name: test_db
environment:
POSTGRES_DB: ${DB_NAME:-django}
POSTGRES_USER: ${DB_USER:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-2309}
volumes:
- pg_data:/var/lib/postgresql/data
redis:
container_name: test_redis
networks:
- aparat
restart: always
image: redis