git clone https://github.com/mastodon/mastodon
cd mastodon
{ curl https://gist.githubusercontent.com/pikesley/f573e283d7c3724f7cb202e73e0f49ee/raw/4d25875d725ecc280ff671a3e5317308568d8d1c/hack.patch ; echo ; } | git apply -v --index # apply my patch
touch .env.production
docker compose build
- the patch allows
localhost
to hit the server, and disablesforce_ssl
docker-compose run --rm -e DISABLE_DATABASE_ENVIRONMENT_CHECK=1 web bundle exec rake mastodon:setup
- THIS SPITS OUT A BUNCH OF CONFIG PARTWAY-THROUGH AND TELLS YOU TO WRITE IT TO
.env.production
, IT DOESN'T SAVE IT FOR YOU LIKE I ASSUMED IT HAD - it fails at "Creating admin user" with some complaints about not being able to connect to Redis on localhost
¯\_(ツ)_/¯
- HOWEVER if you run it again, it works
- it's all so, so ugly
docker compose up
Now you should be able to hit it at http://locahost:3000
I had to
touch .env.production
before the firstdocker compose build