fix: persist pgsodium encryption key between restarts (#21855)

* Update docker-compose.yml

* bug fix based on https://github.com/supabase/postgres/pull/901

* Update docker-compose.yml based on https://github.com/supabase/postgres/pull/901

* chore: add named volume for db-config

* Delete docker/volumes/db/pgsodium/.gitkeep

* chore: use named volume for db-config

---------

Co-authored-by: Han Qiao <sweatybridge@gmail.com>
This commit is contained in:
Nicholas BarrowandHan Qiao authored and GitHub committed 2024-03-08 02:23:44 +00:00
1 parent 5e0fab2b6d
commit 24ac4adb79
1 file changed
+6 -1
+6 -1
View File
@@ -6,8 +6,8 @@
name: supabase
version: "3.8"
services:
services:
studio:
container_name: supabase-studio
image: supabase/studio:20240301-0942bfe
@@ -380,6 +380,8 @@ services:
- ./volumes/db/data:/var/lib/postgresql/data:Z
# Changes required for Analytics support
- ./volumes/db/logs.sql:/docker-entrypoint-initdb.d/migrations/99-logs.sql:Z
# Use named volume to persist pgsodium decryption key between restarts
- db-config:/etc/postgresql-custom
vector:
container_name: supabase-vector
@@ -403,3 +405,6 @@ services:
- ${DOCKER_SOCKET_LOCATION}:/var/run/docker.sock:ro
command: [ "--config", "etc/vector/vector.yml" ]
volumes:
db-config: