mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Reimplement caching
This commit is contained in:
parent
bae2cc653e
commit
d99c82bef4
7 changed files with 89 additions and 5 deletions
|
@ -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"
|
Loading…
Add table
Add a link
Reference in a new issue