Merge pull request #2372 from sameersbn/redis-readme-update

Closes #2322
This commit is contained in:
Sameer Naik 2021-06-23 12:40:56 +05:30 committed by GitHub
commit e5c5cfa2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -179,8 +179,8 @@ Step 2. Launch a redis container
```bash
docker run --name gitlab-redis -d \
--volume /srv/docker/gitlab/redis:/var/lib/redis \
sameersbn/redis:4.0.9-2
--volume /srv/docker/gitlab/redis:/data \
redis:6.2
```
Step 3. Launch the gitlab container
@ -354,20 +354,20 @@ docker run --name gitlab -it --rm \
You can link this image with a redis container to satisfy gitlab's redis requirement. The alias of the redis server container should be set to **redisio** while linking with the gitlab image.
To illustrate linking with a redis container, we will use the [sameersbn/redis](https://github.com/sameersbn/docker-redis) image. Please refer the [README](https://github.com/sameersbn/docker-redis/blob/master/README.md) of docker-redis for details.
To illustrate linking with a redis container, we will use the [redis](https://github.com/docker-library/redis) image. Please refer the [README](https://github.com/docker-library/docs/blob/master/redis/README.md) for details.
First, lets pull the redis image from the docker index.
```bash
docker pull sameersbn/redis:4.0.9-2
docker pull redis:6.2
```
Lets start the redis container
```bash
docker run --name gitlab-redis -d \
--volume /srv/docker/gitlab/redis:/var/lib/redis \
sameersbn/redis:4.0.9-2
--volume /srv/docker/gitlab/redis:/data \
redis:6.2
```
We are now ready to start the GitLab application.

View File

@ -3,11 +3,11 @@ version: '2.3'
services:
redis:
restart: always
image: redis:5.0.9
image: redis:6.2
command:
- --loglevel warning
volumes:
- redis-data:/var/lib/redis:Z
- redis-data:/data:Z
postgresql:
restart: always

View File

@ -72,11 +72,11 @@ version: '2'
services:
redis:
restart: always
image: sameersbn/redis:4.0.9-2
image: sameersbn/redis:6.2
command:
- --loglevel warning
volumes:
- /tmp/docker/gitlab/redis:/var/lib/redis:Z
- /tmp/docker/gitlab/redis:/data:Z
postgresql:
restart: always