about summary refs log tree commit diff
path: root/in-a-box/README.md
blob: a7f45b0918d8198bf3051b2f83dafdc8336a1c14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Mastodon Secure-ish Setup in a Box

Step 1: Git clone this repository.

Step 2: Replace `example.com` in `docker-compose.yml` with your server name.

Step 3: Run `./mastodon.sh setup` and afterwards, move `public/system/.env.production` to the `.docker/mastodon/` folder.

Step 4: Run `./mastodon.sh acme` to set up Let's Encrypt. Make sure that port 80 is allowed by the firewall.

Step 5: Run `docker-compose up -d` to start all services. Verify with `docker-compose ps` that they're up, and if there's errors, `docker-compose logs -f`.

Step 6: Register on the instance.

Step 7: Run `./mastodon.sh make_admin USERNAME=yourusername` (replace "yourusername" with your username).

Step 8: Set a cron job to run `./mastodon.sh cron` daily via inserting `@daily /path/to/mastodon.sh cron` into `crontab -e`.

Step 9: Optionally, set a daily cron to run `./mastodon.sh backup daily` and an hourly cron for `./mastodon.sh backup hourly`.

Step 10: Enjoy! Don't forget to set up your OS's firewall.