update redis run configs
This commit is contained in:
+5
-4
@@ -17,8 +17,7 @@ services:
|
|||||||
|
|
||||||
django:
|
django:
|
||||||
container_name: shop_backend
|
container_name: shop_backend
|
||||||
build:
|
image: fix_update_bank:latest
|
||||||
context: ./backend
|
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8000:8000"
|
||||||
depends_on:
|
depends_on:
|
||||||
@@ -108,8 +107,10 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
container_name: hshop_redis
|
container_name: hshop_redis
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
ports:
|
command: >
|
||||||
- "6379:6379"
|
redis-server
|
||||||
|
--maxmemory 512mb
|
||||||
|
--maxmemory-policy volatile-lru
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
restart: always
|
restart: always
|
||||||
|
|||||||
Reference in New Issue
Block a user