Skip to content

Commit 0db1870

Browse files
committed
Upgrade instructions form Postgresql 12 to 14
Postgres 15 has a permissions problem. See sameersbn/docker-postgresql#168
1 parent 53d1ab4 commit 0db1870

7 files changed

+13
-13
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ docker run --name gitlab-postgresql -d \
172172
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
173173
--env 'DB_EXTENSION=pg_trgm,btree_gist' \
174174
--volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \
175-
sameersbn/postgresql:12-20200524
175+
sameersbn/postgresql:14-20230628
176176
```
177177

178178
Step 2. Launch a redis container
@@ -236,7 +236,7 @@ docker run --name gitlab -d \
236236

237237
GitLab uses a database backend to store its data. You can configure this image to use PostgreSQL.
238238

239-
*Note:* GitLab requieres PostgreSQL now. So use an older image < 12.1 or migrate to PostgresSQL
239+
*Note:* GitLab requires PostgreSQL now. So use an older image < 12.1 or migrate to PostgresSQL
240240

241241
#### PostgreSQL
242242

@@ -263,7 +263,7 @@ Please note furthermore, that only compatible versions of the `postgresql-client
263263
- `postgresql-client-14`,
264264
- and `postgresql-client-15`.
265265

266-
*NOTE:* version 13.7.0 and later requires PostgreSQL version 12.x
266+
*NOTE:* Version 13.7.0 and later requires PostgreSQL version 12.x. Version 16.0.0 and later requires PostgreSQL version 13.x
267267

268268
##### External PostgreSQL Server
269269

@@ -301,7 +301,7 @@ To illustrate linking with a postgresql container, we will use the [sameersbn/po
301301
First, lets pull the postgresql image from the docker index.
302302

303303
```bash
304-
docker pull sameersbn/postgresql:12-20200524
304+
docker pull sameersbn/postgresql:14-20230628
305305
```
306306

307307
For data persistence lets create a store for the postgresql and start the container.
@@ -321,7 +321,7 @@ docker run --name gitlab-postgresql -d \
321321
--env 'DB_USER=gitlab' --env 'DB_PASS=password' \
322322
--env 'DB_EXTENSION=pg_trgm' \
323323
--volume /srv/docker/gitlab/postgresql:/var/lib/postgresql \
324-
sameersbn/postgresql:12-20200524
324+
sameersbn/postgresql:14-20230628
325325
```
326326

327327
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.
@@ -2630,9 +2630,9 @@ Usage when using `docker-compose` can also be found there.
26302630
>
26312631
> 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
26322632
>
2633-
> If you're using `sameersbn/postgresql` then please upgrade to `sameersbn/postgresql:12-20200524` 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#L8>).
2633+
> 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>).
26342634
>
2635-
> As of version 13.7.0, the required PostgreSQL is version 12.x. If you're using PostgreSQL image other than the above, please review section [Upgrading PostgreSQL](#upgrading-postgresql).
2635+
> 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. If you're using PostgreSQL image other than the above, please review section [Upgrading PostgreSQL](#upgrading-postgresql).
26362636

26372637
GitLabHQ releases new versions on the 22nd of every month, bugfix releases immediately follow. I update this project almost immediately when a release is made (at least it has been the case so far). If you are using the image in production environments I recommend that you delay updates by a couple of days after the gitlab release, allowing some time for the dust to settle down.
26382638

contrib/docker-swarm/docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111

1212
postgresql:
1313
restart: always
14-
image: sameersbn/postgresql:12-20200524
14+
image: sameersbn/postgresql:14-20230628
1515
volumes:
1616
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
1717
environment:

docker-compose.swarm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ services:
1212
- node.labels.gitlab.redis-data == true
1313

1414
postgresql:
15-
image: sameersbn/postgresql:12-20200524
15+
image: sameersbn/postgresql:14-20230628
1616
volumes:
1717
- postgresql-data:/var/lib/postgresql:Z
1818
environment:

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111

1212
postgresql:
1313
restart: always
14-
image: sameersbn/postgresql:12-20200524
14+
image: sameersbn/postgresql:14-20230628
1515
volumes:
1616
- postgresql-data:/var/lib/postgresql:Z
1717
environment:

docs/docker-compose-keycloak.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111

1212
postgresql:
1313
restart: always
14-
image: sameersbn/postgresql:12-20200524
14+
image: sameersbn/postgresql:14-20230628
1515
volumes:
1616
- postgresql-data:/var/lib/postgresql:Z
1717
environment:

docs/docker-compose-registry.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111

1212
postgresql:
1313
restart: always
14-
image: sameersbn/postgresql:12-20200524
14+
image: sameersbn/postgresql:14-20230628
1515
volumes:
1616
- postgresql:/var/lib/postgresql:Z
1717
environment:

kubernetes/postgresql-rc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
spec:
1515
containers:
1616
- name: postgresql
17-
image: sameersbn/postgresql:12-20200524
17+
image: sameersbn/postgresql:14-20230628
1818
env:
1919
- name: DB_USER
2020
value: gitlab

0 commit comments

Comments
 (0)