Reimplement caching

This commit is contained in:
Keannu Christian Bernasol 2025-09-03 02:25:42 +08:00
parent bae2cc653e
commit d99c82bef4
7 changed files with 89 additions and 5 deletions

View file

@ -6,9 +6,19 @@ services:
context: .
dockerfile: Dockerfile
image: git.06222001.xyz/keannu125/drf_template:latest
restart: always
ports:
- "${BACKEND_PORT}:8000"
environment:
- RUN_TYPE=api
volumes:
- ./src:/app/src # Bind mount for persistent schema.yml and static files
- ./src:/app/src # Bind mount for persistent schema.yml and static files
# Cache
redis:
image: redis:latest
restart: always
environment:
- REDIS_USERNAME=${CACHE_USERNAME}
- REDIS_PASSWORD=${CACHE_PASSWORD}
- REDIS_DISABLE_DEFAULT_USER="true"