Initial commit
This commit is contained in:
26
backend/redis/compose.yml
Normal file
26
backend/redis/compose.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
services:
|
||||
redis:
|
||||
command: --save 60 1 --loglevel warning
|
||||
healthcheck:
|
||||
interval: 30s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- redis-cli ping | grep PONG
|
||||
timeout: 3s
|
||||
image: docker.io/library/redis:alpine
|
||||
container_name: redis
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
networks:
|
||||
- db
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
volumes:
|
||||
redis_data:
|
||||
name: redis_data
|
||||
networks:
|
||||
db:
|
||||
external: true
|
||||
Reference in New Issue
Block a user