/ansible-docker-mastodon

Using ANSIBLE to deploy Mastodon Docker instance with Nginx reverse proxy and Let's Encrypt SSL certificate

Primary LanguageShellGNU General Public License v3.0GPL-3.0

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.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request