]> cat aescling's git repositories - mastodon.git/commitdiff
Specify middleware versions in docker-compose.yml (#5247)
authorunarist <m.unarist@gmail.com>
Fri, 6 Oct 2017 18:37:17 +0000 (03:37 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 6 Oct 2017 18:37:17 +0000 (20:37 +0200)
PostgreSQL10 has been released, but upgrading from older versions needs dump/restore. If you pull new version without those handling, db service will fail to launch.

To prevent accidentally upgrading, and as a recommended version, this patch specifies PostgreSQL and Redis version.

docker-compose.yml

index cb49fda971969bbadfb96d2200dba8df60cea71b..f280d4ecc97f3ed6c3264649b5006329970ec123 100644 (file)
@@ -3,14 +3,14 @@ services:
 
   db:
     restart: always
-    image: postgres:alpine
+    image: postgres:9.6-alpine
 ### Uncomment to enable DB persistance
 #    volumes:
 #      - ./postgres:/var/lib/postgresql/data
 
   redis:
     restart: always
-    image: redis:alpine
+    image: redis:4.0-alpine
 ### Uncomment to enable REDIS persistance
 #    volumes:
 #      - ./redis:/data