-
Notifications
You must be signed in to change notification settings - Fork 9
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
Migrate to PostgreSQL #54
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
d9da97c
migrate everything to postgresql
AAGaming00 5cb27bc
ci fixes
AAGaming00 8eb87b6
more ci fixes
AAGaming00 32a1294
fix compose issue
AAGaming00 22736af
build arm64 images
AAGaming00 6b01bd2
fix sorting mess
AAGaming00 32acbb9
user-defined db path
AAGaming00 20dba88
less unhinged networking
AAGaming00 d5cd9d8
fix: wrong default order in tests
gbdlin 763fac4
chore: bump pytest asyncio and switch to freezer
gbdlin b292705
fix: lint fixes
gbdlin 14d0932
refactor: no longer use db or freezer in seeder
gbdlin e61d217
refactor: Use transactional DB tests
gbdlin 114287e
Postgres doesn't like collate by NOCASE. but it does it by default an…
PartyWumpus e5d74d9
Mypy fixes
gbdlin 0bf3ec4
fix: Revert back to pull_request_target
gbdlin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,26 +4,32 @@ services: | |
build: . | ||
container_name: "${DEPLOYMENT_NAME}" | ||
environment: | ||
- DB_PATH | ||
- DB_URL | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, same here. We can build it from |
||
- ANNOUNCEMENT_WEBHOOK | ||
- SUBMIT_AUTH_KEY | ||
- B2_APP_KEY_ID | ||
- B2_APP_KEY | ||
- B2_BUCKET_ID | ||
volumes: | ||
- ~/database:/db | ||
networks: | ||
- plugins-network | ||
- default | ||
restart: unless-stopped | ||
|
||
redis_db: | ||
image: redis:latest | ||
restart: unless-stopped | ||
networks: | ||
- plugins-network | ||
environment: | ||
- REDIS_PORT=6379 | ||
|
||
|
||
postgres_db: | ||
image: postgres:16 # Postgres databases are only compatible with their same major version | ||
restart: unless-stopped | ||
environment: | ||
- POSTGRES_DB=decky | ||
- POSTGRES_USER=decky | ||
- POSTGRES_PASSWORD | ||
volumes: | ||
- ${DB_PATH}:/var/lib/postgresql/data | ||
|
||
networks: | ||
plugins-network: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want this DB_URL specified for local dev, as the postgres instance starts in the same dockerfile anyway.