mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-25 14:08:09 +00:00
Merge pull request #1667 from sameersbn/pin-versions
Pin docker images to specific versions
This commit is contained in:
commit
32c3105723
18
README.md
18
README.md
@ -173,7 +173,7 @@ docker run --name gitlab-postgresql -d \
|
||||
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
|
||||
--env 'DB_EXTENSION=pg_trgm' \
|
||||
--volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \
|
||||
sameersbn/postgresql:9.6-2
|
||||
sameersbn/postgresql:10
|
||||
```
|
||||
|
||||
Step 2. Launch a redis container
|
||||
@ -181,7 +181,7 @@ Step 2. Launch a redis container
|
||||
```bash
|
||||
docker run --name gitlab-redis -d \
|
||||
--volume /srv/docker/gitlab/redis:/var/lib/redis \
|
||||
sameersbn/redis:latest
|
||||
sameersbn/redis:3.0.6
|
||||
```
|
||||
|
||||
Step 3. Launch the gitlab container
|
||||
@ -277,7 +277,7 @@ To illustrate linking with a postgresql container, we will use the [sameersbn/po
|
||||
First, lets pull the postgresql image from the docker index.
|
||||
|
||||
```bash
|
||||
docker pull sameersbn/postgresql:9.6-2
|
||||
docker pull sameersbn/postgresql:10
|
||||
```
|
||||
|
||||
For data persistence lets create a store for the postgresql and start the container.
|
||||
@ -297,7 +297,7 @@ docker run --name gitlab-postgresql -d \
|
||||
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
|
||||
--env 'DB_EXTENSION=pg_trgm' \
|
||||
--volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \
|
||||
sameersbn/postgresql:9.6-2
|
||||
sameersbn/postgresql:10
|
||||
```
|
||||
|
||||
The above command will create a database named `gitlabhq_production` and also create a user named `gitlab` with the password `password` with access to the `gitlabhq_production` database.
|
||||
@ -330,7 +330,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:latest
|
||||
sameersbn/mysql:5.7.22-1
|
||||
```
|
||||
|
||||
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.
|
||||
@ -375,7 +375,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:latest
|
||||
docker pull sameersbn/mysql:5.7.22-1
|
||||
```
|
||||
|
||||
For data persistence lets create a store for the mysql and start the container.
|
||||
@ -394,7 +394,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:latest
|
||||
sameersbn/mysql:5.7.22-1
|
||||
```
|
||||
|
||||
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.
|
||||
@ -443,7 +443,7 @@ To illustrate linking with a redis container, we will use the [sameersbn/redis](
|
||||
First, lets pull the redis image from the docker index.
|
||||
|
||||
```bash
|
||||
docker pull sameersbn/redis:latest
|
||||
docker pull sameersbn/redis:3.0.6
|
||||
```
|
||||
|
||||
Lets start the redis container
|
||||
@ -451,7 +451,7 @@ Lets start the redis container
|
||||
```bash
|
||||
docker run --name gitlab-redis -d \
|
||||
--volume /srv/docker/gitlab/redis:/var/lib/redis \
|
||||
sameersbn/redis:latest
|
||||
sameersbn/redis:3.0.6
|
||||
```
|
||||
|
||||
We are now ready to start the GitLab application.
|
||||
|
||||
@ -3,7 +3,7 @@ version: '2'
|
||||
services:
|
||||
redis:
|
||||
restart: always
|
||||
image: sameersbn/redis:latest
|
||||
image: sameersbn/redis:3.0.6
|
||||
command:
|
||||
- --loglevel warning
|
||||
volumes:
|
||||
@ -11,7 +11,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:9.6-2
|
||||
image: sameersbn/postgresql:10
|
||||
volumes:
|
||||
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -3,7 +3,7 @@ version: '2'
|
||||
services:
|
||||
redis:
|
||||
restart: always
|
||||
image: sameersbn/redis:latest
|
||||
image: sameersbn/redis:3.0.6
|
||||
command:
|
||||
- --loglevel warning
|
||||
volumes:
|
||||
|
||||
@ -72,7 +72,7 @@ version: '2'
|
||||
services:
|
||||
redis:
|
||||
restart: always
|
||||
image: sameersbn/redis:latest
|
||||
image: sameersbn/redis:3.0.6
|
||||
command:
|
||||
- --loglevel warning
|
||||
volumes:
|
||||
@ -80,7 +80,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:9.6-2
|
||||
image: sameersbn/postgresql:10
|
||||
volumes:
|
||||
- /tmp/docker/gitlab/postgresql:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: postgresql
|
||||
image: sameersbn/postgresql:9.6-2
|
||||
image: sameersbn/postgresql:10
|
||||
env:
|
||||
- name: DB_USER
|
||||
value: gitlab
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user