Add more docs [ci skip]
This commit is contained in:
parent
531ea86434
commit
f62b6e2e9c
23
README.md
23
README.md
@ -24,7 +24,28 @@ This repository is a copy of [coop-cloud/mastodon](https://git.autonomic.zone/co
|
||||
1. `abra app new mastodon`
|
||||
1. Follow the [secrets setup docs](#secrets-setup)
|
||||
1. `abra app YOURAPPDOMAIN config` - be sure to change `DOMAIN` to something that resolves to your Docker swarm box
|
||||
1. `abra app YOURAPPDOMAIN setup` to setup the database and create the admin account (services will stop flapping shortly after)
|
||||
1. `abra app YOURAPPDOMAIN deploy` to deploy the app
|
||||
|
||||
You'll need to run a `docker exec -it <streaming-service-id> /bin/bash` and do the following:
|
||||
|
||||
```
|
||||
export OTP_SECRET=$(cat /run/secrets/otp_secret)
|
||||
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
|
||||
export DB_PASS=$(cat /run/secrets/db_password)
|
||||
bundle exec rake db:setup
|
||||
```
|
||||
|
||||
Then, on your host (outside of the containers), you'll need to fix permissions for the volume (see [#2](https://git.autonomic.zone/coop-cloud/hometown/issues/2)):
|
||||
|
||||
```
|
||||
chown -R 991:991 /var/lib/docker/volumes/<service-name>_app/_data
|
||||
```
|
||||
|
||||
And finally, within any app container, create an admin account:
|
||||
|
||||
```
|
||||
tootctl accounts create <username> --email <email> --confirmed --role admin
|
||||
```
|
||||
|
||||
[`abra`]: https://git.autonomic.zone/autonomic-cooperative/abra
|
||||
[`coop-cloud/traefik`]: https://git.autonomic.zone/coop-cloud/traefik
|
||||
|
Loading…
Reference in New Issue
Block a user