From 11bfd45124f55a79c71ef10008c8b1cfdffa6a24 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 3 Jul 2021 11:42:27 +0200 Subject: Adds instructions for using only the built docker-compose.yml file --- Readme.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Readme.md b/Readme.md index 68c3eac..6b2c086 100644 --- a/Readme.md +++ b/Readme.md @@ -71,6 +71,32 @@ Config: Runs mastodon + +## Using only the built docker-compose.yml file + + +### First time setup + +- get the [.env.example](.env.example) file and save it as `.env` + +- create `.env.production` +``` +touch .env.production +``` + +- run `bundle exec rake mastodon:setup` in the `web` container +``` +docker-compose run --rm -v $PWD/.env.production:/opt/mastodon/.env.production web bundle exec rake mastodon:setup +``` + + +### Run all services + +``` +docker-compose up -d +``` + + ## Credits - https://github.com/peterrus/docker-mastodon -- cgit v1.2.3