mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2026-01-18 13:58:25 +00:00
bump to sameersbn/postgresql:9.5-4
This commit is contained in:
parent
59538fb3d6
commit
1d71fc357f
@ -166,7 +166,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.5-3
|
||||
sameersbn/postgresql:9.5-4
|
||||
```
|
||||
|
||||
Step 2. Launch a redis container
|
||||
@ -270,7 +270,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.5-3
|
||||
docker pull sameersbn/postgresql:9.5-4
|
||||
```
|
||||
|
||||
For data persistence lets create a store for the postgresql and start the container.
|
||||
@ -290,7 +290,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.5-3
|
||||
sameersbn/postgresql:9.5-4
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
@ -11,7 +11,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:9.5-3
|
||||
image: sameersbn/postgresql:9.5-4
|
||||
volumes:
|
||||
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -85,7 +85,7 @@ services:
|
||||
- ./redis:/var/lib/redis:Z
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:9.5-3
|
||||
image: sameersbn/postgresql:9.5-4
|
||||
volumes:
|
||||
- ./postgresql:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: postgresql
|
||||
image: sameersbn/postgresql:9.5-3
|
||||
image: sameersbn/postgresql:9.5-4
|
||||
env:
|
||||
- name: DB_USER
|
||||
value: gitlab
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user