Skip to content

Commit

Permalink
deps: upgrade to postgres 15 bookworm
Browse files Browse the repository at this point in the history
steps to upgrade db image:

1. backup db via `npm run backupdb` in the server container
2. copy the generated pom-(date).sql out from the server container into
   the host, e.g., `docker compose cp server:/code/server/pom-db.sql .`
3. stop db container
3. upgrade to new postgres image in docker-compose.yml
4. backup postgres data directory e.g., `mv docker/data{,.backup}`
5. regenerate `docker-compose.yml` via `make docker-compose.yml` or
   `make deploy`
6. `docker compose up -d`
7. copy pom-db.sql into server container and run
   `npm run dangerously-loaddb`

resolves virtualcommons/planning#48
  • Loading branch information
alee committed Aug 6, 2024
1 parent 912fdc2 commit d232e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ services:
interval: 10s
timeout: 5s
retries: 5
image: postgres:12
image: postgres:15-bookworm
secrets:
- pom_db_password
restart: always
Expand Down

0 comments on commit d232e0a

Please sign in to comment.