ansible-docker-mastodon
Using ANSIBLE to deploy Mastodon Docker instance with Nginx reverse proxy and Let's Encrypt SSL certificate
Requirement:
Mastodon server OS:
- Ubuntu 16.04 LTS
- Docker and Docker-compose installed
Having ANSIBLE installed on the instance from where you will be executing this role
Tips
To make an account an admin on your Mastodon instance:
cd /home/mastodon/
docker-compose run --rm web rails mastodon:make_admin USERNAME=example
Then logout and log back in.
Restarting the Mastodon server:
cd /home/mastodon/
docker-compose stop
docker-compose up -d
The above commands restart the docker container for you. This should really only be done to troubleshoot errors.
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request