https://github.com/sango-tech/redis
Redis docker for development or testing
https://github.com/sango-tech/redis
Last synced: about 1 year ago
JSON representation
Redis docker for development or testing
- Host: GitHub
- URL: https://github.com/sango-tech/redis
- Owner: sango-tech
- License: mit
- Created: 2022-01-12T04:38:14.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-14T05:15:59.000Z (over 4 years ago)
- Last Synced: 2025-02-06T05:30:08.699Z (over 1 year ago)
- Language: Shell
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Redis for development or testing
### Start
```
docker-compose up
```
### Add this to your docker compose file
```
redis:
# build:
# context: .
# dockerfile: redis/Dockerfile
image: sangotech/redis:latest
privileged: true
command: sh -c "./init.sh"
volumes:
- ./data/redis:/data
ports:
- 6379:6379
```
### Push to docker hub
```
docker build --platform=linux/amd64 . -t redis -f ./redis/Dockerfile --force-rm
docker tag redis:latest sangotech/redis:1.0.1
docker push sangotech/redis:1.0.1
```