Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Przemyslaw Kaminski
haskell-gargantext
Commits
bd17fc3e
Commit
bd17fc3e
authored
Aug 30, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[README] updated with section on upgrading postgres in docker
parent
a2788ade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
README.md
README.md
+20
-0
No files found.
README.md
View file @
bd17fc3e
...
...
@@ -229,3 +229,23 @@ Playground is located at http://localhost:8008/gql
}
}
```
## PostgreSQL
### Upgrading
https://www.cloudytuts.com/tutorials/docker/how-to-upgrade-postgresql-in-docker-and-kubernetes/
To upgrade PostgreSQL in Docker containers, for example from 11.x to 14.x, simply run:
```
sh
docker
exec
-it
<container-id> pg_dumpall
-U
gargantua
>
11-db.dump
```
Then, shut down the container, replace
`image`
section in
`devops/docker/docker-compose.yaml`
with
`postgres:14`
, start the container and execute:
```
sh
# need to drop the empty DB first, since schema will be created when restoring the dump
docker
exec
-i
<new-container-id> dropdb
-U
gargantua gargandbV5
# recreate the db, but empty with no schema
docker
exec
-i
<new-container-id> createdb
-U
gargantua gargandbV5
# now we can restore the dump
docker
exec
-i
<new-container-id> psql
-U
gargantua
-d
gargandbV5 < 11-db.dump
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment