Skip to content

Commit a022029

Browse files
committed
ボリュームのマウント先を/var/lib/postgresqlに変更
PostgreSQL 18以降のDockerイメージでは、データを/var/lib/postgresql/dataではなく、/var/lib/postgresql配下のバージョンごとのサブディレクトリ(例: /var/lib/postgresql/18/main)に保存するようになったため。 docker-library/postgres#1259
1 parent a469cdd commit a022029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
ports:
1919
- "5432:5432"
2020
volumes:
21-
- db:/var/lib/postgresql/data
21+
- db:/var/lib/postgresql
2222
environment:
2323
POSTGRES_HOST_AUTH_METHOD: 'trust'
2424
volumes:

0 commit comments

Comments
 (0)