mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
updated to sameersbn/mysql:5.7.26-0 image
This commit is contained in:
parent
5e981a4273
commit
9aab3ea2f9
@ -332,7 +332,7 @@ Assuming that your mysql data is available at `/srv/docker/gitlab/mysql`
|
||||
```bash
|
||||
docker run --name gitlab-mysql -d \
|
||||
--volume /srv/docker/gitlab/mysql:/var/lib/mysql \
|
||||
sameersbn/mysql:5.7.22-1
|
||||
sameersbn/mysql:5.7.26-0
|
||||
```
|
||||
|
||||
This will start a mysql container with your existing mysql data. Now login to the mysql container and create a user for the existing `gitlabhq_production` database.
|
||||
@ -377,7 +377,7 @@ To illustrate linking with a mysql container, we will use the [sameersbn/mysql](
|
||||
First, lets pull the mysql image from the docker index.
|
||||
|
||||
```bash
|
||||
docker pull sameersbn/mysql:5.7.22-1
|
||||
docker pull sameersbn/mysql:5.7.26-0
|
||||
```
|
||||
|
||||
For data persistence lets create a store for the mysql and start the container.
|
||||
@ -396,7 +396,7 @@ docker run --name gitlab-mysql -d \
|
||||
--env 'DB_NAME=gitlabhq_production' \
|
||||
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
|
||||
--volume /srv/docker/gitlab/mysql:/var/lib/mysql \
|
||||
sameersbn/mysql:5.7.22-1
|
||||
sameersbn/mysql:5.7.26-0
|
||||
```
|
||||
|
||||
The above command will create a database named `gitlabhq_production` and also create a user named `gitlab` with the password `password` with full/remote access to the `gitlabhq_production` database.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user