diff --git a/README.md b/README.md index 44df670..86a3fc6 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Not every stack is tested to fully work. - [x] Proxy MTProto - [x] Proxy Socks5 - [ ] Radarr (prototype state, see sonarr) +- [x] Redis - [ ] Sonarr (prototype state, working itself, but transmission-on-host integration didn't work due to path mismatch) - [x] Speedtest (LibreSpeed) - [ ] Wordpress (prototype state) diff --git a/redis/.env.dist b/redis/.env.dist new file mode 100644 index 0000000..a4a2e70 --- /dev/null +++ b/redis/.env.dist @@ -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 diff --git a/redis/docker-compose.yml b/redis/docker-compose.yml new file mode 100644 index 0000000..9e431b6 --- /dev/null +++ b/redis/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.7' + +services: + redis: + # https://hub.docker.com/r/portainer/portainer + 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