Compare commits
1 Commits
cfee30ce6b
...
5b51007c79
Author | SHA1 | Date |
---|---|---|
Alexey Skobkin | 5b51007c79 |
|
@ -0,0 +1,7 @@
|
|||
# https://hub.docker.com/_/redis
|
||||
|
||||
# Uncomment to use directory binding instead of docker volume (almost always not needed)
|
||||
#DATA_PATH=/some/path
|
||||
|
||||
LOG_MAX_SIZE=5m
|
||||
LOG_MAX_FILE=5
|
|
@ -0,0 +1,20 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
redis:
|
||||
# https://hub.docker.com/_/redis
|
||||
image: redis:alpine
|
||||
container_name: redis
|
||||
ports:
|
||||
- "127.0.0.1:6379:6379/tcp"
|
||||
env_file: .env
|
||||
restart: unless-stopped
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "${LOG_MAX_SIZE:-5m}"
|
||||
max-file: "${LOG_MAX_FILE:-5}"
|
||||
|
||||
#volumes:
|
||||
# redis_data:
|
||||
# name: redis_data
|
Loading…
Reference in New Issue