Skip to content

Docker Compose+PGroongaを利用する際にデータが保存されない #17006

@fitudao3788

Description

@fitudao3788

💡 Summary

Docker Compose+PGroongaを利用する際にdbディレクトリ以下にデータが保持されないため再起動時にデータが消えてしまいます
ただしVolumeのパスを/var/lib/postgresqlから/var/lib/postgresql/dataに変更すると正常に保持されます

🥰 Expected Behavior

dbディレクトリ以下にPostgreSQLのデータ群が保持される

🤬 Actual Behavior

dbディレクトリ以下にdataディレクトリだけが存在しPostgreSQLのデータ群が確認できない
Docker ComposeをUPした状態だとコンテナ内ではPostgreSQLのデータ群の存在が確認できる

📝 Steps to Reproduce

compose.ymlのImageをgroonga/pgroonga:latest-alpine-15-slimに変更する

💻 Frontend Environment

* Model and OS of the device(s):Windows 11 25H2 (26200.7462)
* Browser:Floorp 12.8.3
* Server URL: Local
* Misskey:https://github.com/misskey-dev/misskey/commit/7420c10a586ae1780af1f47b571593ac093094a9

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service:Docker Compose
* Misskey:https://github.com/misskey-dev/misskey/commit/7420c10a586ae1780af1f47b571593ac093094a9
* Node:22.15.0-bookworm
* PostgreSQL:4.0.5/15
* Redis:7-alpine
* OS and Architecture:Ubuntu 24.04 LTS

Do you want to address this bug yourself?

  • Yes, I will patch the bug myself and send a pull request

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions