https://github.com/stepankuzmin/docker-nginx-with-redis
Nginx Alpine with HTTP Redis
https://github.com/stepankuzmin/docker-nginx-with-redis
alpine docker nginx redis
Last synced: about 2 months ago
JSON representation
Nginx Alpine with HTTP Redis
- Host: GitHub
- URL: https://github.com/stepankuzmin/docker-nginx-with-redis
- Owner: stepankuzmin
- Created: 2017-11-11T12:26:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-12T14:03:44.000Z (over 8 years ago)
- Last Synced: 2025-01-31T23:27:46.585Z (over 1 year ago)
- Topics: alpine, docker, nginx, redis
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nginx Alpine with HTTP Redis
This repo contains latest official Docker image of [Nginx Alpine](https://hub.docker.com/_/nginx/) with [HTTP Redis](https://www.nginx.com/resources/wiki/modules/redis/) module compiled in.
Usage:
```shell
docker run -d -v ./nginx.conf:/etc/nginx/conf.d/default.conf:ro stepankuzmin/nginx-with-redis
```
Example configuration:
```nginx
server {
location / {
set $redis_key $uri;
redis_pass name:6379;
default_type text/html;
error_page 404 = /fallback;
}
location = /fallback {
proxy_pass backend;
}
}
```
**Note**: The backend should set the data in redis. The redis key is `/uri?args`.