Skip to content

Commit

Permalink
docker-compose: bump postgresql image version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameer Naik committed Jun 11, 2016
1 parent 6ade5f2 commit faa0c38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,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.4-21
sameersbn/postgresql:9.4-22
```

Step 2. Launch a redis container
Expand Down Expand Up @@ -256,7 +256,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.4-21
docker pull sameersbn/postgresql:9.4-22
```

For data persistence lets create a store for the postgresql and start the container.
Expand All @@ -276,7 +276,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.4-21
sameersbn/postgresql:9.4-22
```

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.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:

postgresql:
restart: always
image: sameersbn/postgresql:9.4-21
image: sameersbn/postgresql:9.4-22
volumes:
- /srv/docker/gitlab/postgresql:/var/lib/postgresql:Z
environment:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/postgresql-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
spec:
containers:
- name: postgresql
image: sameersbn/postgresql:9.4-21
image: sameersbn/postgresql:9.4-22
env:
- name: DB_USER
value: gitlab
Expand Down

0 comments on commit faa0c38

Please sign in to comment.