Webhook.site stack and Redis persistence #85

Merged
skobkin merged 4 commits from feature_83_webhook_site into master 2024-03-07 13:40:37 +00:00
3 changed files with 11 additions and 6 deletions
Showing only changes of commit fe61216f95 - Show all commits

View file

@ -1,7 +1,11 @@
# https://hub.docker.com/_/redis # https://hub.docker.com/_/redis
# Uncomment to use directory binding instead of docker volume (almost always not needed) # Uncomment to use directory binding instead of docker volume (almost always not needed)
#DATA_PATH=/some/path HOST_DATA_DIR=./data
# https://redis.io/docs/management/persistence/#snapshotting
PERSISTENCE_PERIOD_SEC=60
PERSISTENCE_MIN_OPS=1
LOG_LEVEL=warning
LOG_MAX_SIZE=5m LOG_MAX_SIZE=5m
LOG_MAX_FILE=5 LOG_MAX_FILE=5

2
redis/data/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/*
!/.gitignore

View file

@ -1,10 +1,13 @@
version: '3.7' version: '3.8'
services: services:
redis: redis:
# https://hub.docker.com/_/redis # https://hub.docker.com/_/redis
image: redis:alpine image: redis:alpine
container_name: redis container_name: redis
command: "redis-server --save ${PERSISTENCE_PERIOD_SEC:-60} ${PERSISTENCE_MIN_OPS:-1} --loglevel ${LOG_LEVEL:-warning}"
volumes:
- "${HOST_DATA_DIR:-./data}:/data"
ports: ports:
- "127.0.0.1:6379:6379/tcp" - "127.0.0.1:6379:6379/tcp"
env_file: .env env_file: .env
@ -14,7 +17,3 @@ services:
options: options:
max-size: "${LOG_MAX_SIZE:-5m}" max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}" max-file: "${LOG_MAX_FILE:-5}"
#volumes:
# redis_data:
# name: redis_data