Look at Peertube’s docker-compose file for some inspiration. The mail issue can be avoided by a) using a SaaS such as (mailgun/mailjet/sendinblue) or b) using another Docker container with postfix that is in the frontend network as well. Eventually, I solved it with an extra filewall rule: ufw allow proto tcp from any to 172.17.0.1 port 25. Its server-side technology is powered by Ruby on Rails and Node.js, and its front end is written in React.js and Redux.
#MASTODON LINUX SOFTWARE#
I had much problems to let the mastodon container connect to a mail transport agent (MTA) of my host. Mastodon is written as a free, web-based software for federated microblogging, which anybody can contribute code to, and which anyone can run on their own server infrastructure, if they wish, or join servers run by other people within the fediverse network. # subsequent times: skip generation of config and only setup databaseĭocker compose run -rm -v $( pwd )/:/opt/mastodon/.env.production web bundle exec rake db:setupĭocker-compose run -rm crossposter-web bundle exec rake db:setupĭocker compose run -d # look into the logs, -f for live logs # first time: setup mastodon # (on RUBYOPT)ĭocker compose run -rm -v $( pwd )/:/opt/mastodon/.env.production -e RUBYOPT = -W0 web bundle exec rake mastodon:setup If the instance has been setup before, a database setup may be enough. With these file in place, create a few more folders and launch the setup of the instance. env # helps crossposter resolve the mastodon server internally hostname : " $ < 600`
caddy/logs:/logs - mastodon-public:/srv/mastodon/public:ro env_file . 2.62K Posts, 30 Following, 8. # file: 'docker-compose.yml' version : " 3.7" services : caddy : image : caddy:2-alpine restart : unless-stopped container_name : caddy ports : - " 80:80" - " 443:443" volumes :.
With little effort, we enable as well full-text search with elasticsearch. , because I prefer to rely on the official images from Docker Hub. Otherwise, youll need to clone the source code from the plugins git repo and build it from source: git clone.
#MASTODON LINUX INSTALL#
In that case, you can just install it with your package manager. This plugin is already packaged for Debian and other distributionslook for the bitlbee-mastodon package. FRONTEND_SUBNET = "172.22.0.0/16" # check the latest version here: MASTODON_VERSION =v3.4.6 The first step is to install the Mastodon Bitlbee Plugin.