From 57d1d448b2a3aaea930a552d10e9ba6bd6888df3 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Mon, 25 Jan 2016 12:21:40 +0900 Subject: [PATCH] db: Specify version of pgsql You may see this error if you use pgsql 9.5 with 9.4 data. > FATAL: database files are incompatible with server > DETAIL: The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 9.5.0. --- db/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/Dockerfile b/db/Dockerfile index 2ae1f90..f4295d9 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ -FROM postgres +FROM postgres:9.4 ADD make_db.sh /docker-entrypoint-initdb.d/