1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Specify middleware versions in docker-compose.yml (#5247)

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.
This commit is contained in:
unarist 2017-10-07 03:37:17 +09:00 committed by Eugen Rochko
parent 6f2d88dd28
commit c75ca0525b

View 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