![]() ![]() I had much problems to let the mastodon container connect to a mail transport agent (MTA) of my host. # 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. # 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 :. Consider to replace the git repository to build the crossposter with a local copy for more control over updates.Using extra_host, we expose with ":host-gateway" the Docker host to the Mastodon Sidekiq container in case that you configure Mastodon to use a mail transfer agent (e.g. Remove it from the docker-compose.yml in case you have no use for it. You need to setup an extra subdomain for it. The setup comes with the Mastodon Twitter Crossposter. ![]() Caddy serves directy static files for improved speed. We use a named volume mastodon-public to expose the static files from the mastodon-web container to the Caddy webserver. The setup places all databases and uploaded files in the folder mastodon. With little effort, we enable as well full-text search with elasticsearch. , because I prefer to rely on the official images from Docker Hub. FRONTEND_SUBNET = "172.22.0.0/16" # check the latest version here: MASTODON_VERSION =v3.4.6 ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |