From 451a30f979fc4cae52da81de8094b82eb11d60dc Mon Sep 17 00:00:00 2001 From: Warren Van Winckel Date: Mon, 26 Feb 2018 13:54:24 -0800 Subject: [PATCH 1/2] Pin postgres, redis and rabbitmq --- docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 7612d982..bbc5df8f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,7 +40,7 @@ services: - mongo-configdb-volume:/data/configdb dns_search: . rabbitmq: - image: rabbitmq:management + image: rabbitmq:3.6-management container_name: rabbitmq env_file: - conf/rabbitmq.env @@ -50,7 +50,7 @@ services: - rabbitmq-volume:/var/lib/rabbitmq dns_search: . postgres: - image: postgres:latest + image: postgres:9.6 container_name: postgres env_file: - conf/postgres.env @@ -60,7 +60,7 @@ services: - postgres-volume:/var/lib/postgresql/data dns_search: . redis: - image: redis:latest + image: redis:4.0 container_name: redis env_file: - conf/redis.env From b6438dcbc31ec0829a1e3dfd191f725b4978dc47 Mon Sep 17 00:00:00 2001 From: Warren Van Winckel Date: Mon, 26 Feb 2018 14:32:43 -0800 Subject: [PATCH 2/2] Update README with info on pinning DB --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index ce70cce5..74e607ad 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,19 @@ It's designed to suffice the ordinary use case by default. If you need to custom - `/opt/stackstorm/virtualenvs` - `/opt/stackstorm/configs` +Since data directories may persist between invocations of `docker-compose`, you may see the following error: + +``` +2018-02-21 16:36:21.453 UTC [1] FATAL: database files are incompatible with server +2018-02-21 16:36:21.453 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.2 (Debian 10.2-1.pgdg90+1). +``` + +In `docker-compose.yml`, pin the postgres version to `9.6` and you will not see the error again. + +``` +- image: postgres:latest ++ image: postgres:9.6 +``` ## Environment variables