mirror of
https://github.com/sameersbn/docker-gitlab.git
synced 2025-12-08 17:36:24 +00:00
Use docker image by kkimurak for postgresql
This commit is contained in:
parent
1192a2e210
commit
54df830588
@ -175,7 +175,7 @@ docker run --name gitlab-postgresql -d \
|
||||
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
|
||||
--env 'DB_EXTENSION=pg_trgm,btree_gist' \
|
||||
--volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \
|
||||
sameersbn/postgresql:14-20230628
|
||||
kkimurak/sameersbn-postgresql:16
|
||||
```
|
||||
|
||||
Step 2. Launch a redis container
|
||||
@ -306,7 +306,7 @@ To illustrate linking with a postgresql container, we will use the [sameersbn/po
|
||||
First, let's pull the postgresql image from the docker index.
|
||||
|
||||
```bash
|
||||
docker pull sameersbn/postgresql:14-20230628
|
||||
docker pull kkimurak/sameersbn-postgresql:16
|
||||
```
|
||||
|
||||
For data persistence lets create a store for the postgresql and start the container.
|
||||
@ -326,7 +326,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:14-20230628
|
||||
kkimurak/sameersbn-postgresql:16
|
||||
```
|
||||
|
||||
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.
|
||||
@ -2720,7 +2720,7 @@ Usage when using `docker-compose` can also be found there.
|
||||
>
|
||||
> Since GitLab release `8.6.0` PostgreSQL users should enable `pg_trgm` extension on the GitLab database. Refer to GitLab's [Postgresql Requirements](http://doc.gitlab.com/ce/install/requirements.html#postgresql-requirements) for more information
|
||||
>
|
||||
> If you're using `sameersbn/postgresql` then please upgrade to `sameersbn/postgresql:14-20230628` or later and add `DB_EXTENSION=pg_trgm,btree_gist` to the environment of the PostgreSQL container (see: <https://github.com/sameersbn/docker-gitlab/blob/master/docker-compose.yml#L21>).
|
||||
> If you're using `sameersbn/postgresql` then please upgrade to `kkimurak/sameersbn-postgresql:16` or later and add `DB_EXTENSION=pg_trgm,btree_gist` to the environment of the PostgreSQL container (see: <https://github.com/sameersbn/docker-gitlab/blob/master/docker-compose.yml#L21>).
|
||||
>
|
||||
> As of version 13.7.0, the required PostgreSQL is version 12.x. As of version 16.0.0, the required PostgreSQL is version 13.x. As of version 17.0.0, the required PostgreSQL is version 14.x. If you're using PostgreSQL image other than the above, please review section [Upgrading PostgreSQL](#upgrading-postgresql).
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:14-20230628
|
||||
image: kkimurak/sameersbn-postgresql:16
|
||||
volumes:
|
||||
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -12,7 +12,7 @@ services:
|
||||
- node.labels.gitlab.redis-data == true
|
||||
|
||||
postgresql:
|
||||
image: sameersbn/postgresql:14-20230628
|
||||
image: kkimurak/sameersbn-postgresql:16
|
||||
volumes:
|
||||
- postgresql-data:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -11,7 +11,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:14-20230628
|
||||
image: kkimurak/sameersbn-postgresql:16
|
||||
volumes:
|
||||
- postgresql-data:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -11,7 +11,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:14-20230628
|
||||
image: kkimurak/sameersbn-postgresql:16
|
||||
volumes:
|
||||
- postgresql-data:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -11,7 +11,7 @@ services:
|
||||
|
||||
postgresql:
|
||||
restart: always
|
||||
image: sameersbn/postgresql:14-20230628
|
||||
image: kkimurak/sameersbn-postgresql:16
|
||||
volumes:
|
||||
- postgresql:/var/lib/postgresql:Z
|
||||
environment:
|
||||
|
||||
@ -14,7 +14,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: postgresql
|
||||
image: sameersbn/postgresql:14-20230628
|
||||
image: kkimurak/sameersbn-postgresql:16
|
||||
env:
|
||||
- name: DB_USER
|
||||
value: gitlab
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user