Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use pg 15 #573

Merged
merged 1 commit into from
Jan 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
version: '3.7'

services:

db:
container_name: paws-compose-db
ports:
- "5432:5432"
image: postgres:13.2-alpine
image: postgres:15.4-alpine
volumes:
- postgres:/var/lib/postgresql/data
- postgres15:/var/lib/postgresql15/data
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my own learning, can you tell me why we need to update volume name and directory here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was an attempt to preserve the old pg13 install/data to make moving easier

environment:
POSTGRES_DB: paws
POSTGRES_PASSWORD: thispasswordisverysecure
# command: ["postgres", "-c", "log_statement=all"]


server:
container_name: paws-compose-server
Expand Down Expand Up @@ -51,6 +54,7 @@ services:
#using named volumes fixs a windows docker bug relating to container permissions
#https://stackoverflow.com/questions/49148754/docker-container-shuts-down-giving-data-directory-has-wrong-ownership-error-wh
volumes:
postgres:
postgres15:
src_archive:
server_logs: