You have to run the following
docker compose -f docker-compose-sentry.yml up
I'm running this from a test directory, so docker-compose prefixes everything with test_
docker run -it --rm -e SENTRY_SECRET_KEY=verysecret --link tests_redis_1:redis --link tests_postgres_1:postgres sentry upgrade