mbezzo Posted September 23, 2018 Share Posted September 23, 2018 Hi All, I've been trying to get the mastodon dockerhub docker running, but no luck. Anyone willing to unRAIDify this one? https://hub.docker.com/r/tootsuite/mastodon/ https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Docker-Guide.md Much appreciated! Matt 1 1 Quote Link to comment
RobotKoalaFromHell Posted July 6, 2020 Share Posted July 6, 2020 (edited) Two years late but I found your post when looking to setup Mastodon myself. I ended up getting it working and wrote up a guide to document the whole process. Hopefully it helps someone https://fixflare.com/en/posts/unraid/mastodon/ Edited July 13, 2020 by RobotKoalaFromHell Quote Link to comment
Alpacac Posted August 12, 2020 Share Posted August 12, 2020 @RobotKoalaFromHell Access denied, sadly. 1 Quote Link to comment
thunderclap Posted October 17, 2020 Share Posted October 17, 2020 On 7/6/2020 at 1:14 AM, RobotKoalaFromHell said: Two years late but I found your post when looking to setup Mastodon myself. I ended up getting it working and wrote up a guide to document the whole process. Hopefully it helps someone https://fixflare.com/en/posts/unraid/mastodon/ I tried following this guide but on the third bash command "RAILS_ENV=production bin/bundle exec rake mastodon:webpush:generate_vapid_key" it generates an error and no key is generated. Any suggestions? Quote Link to comment
Chris Wiegand Posted January 6, 2021 Share Posted January 6, 2021 On 10/17/2020 at 9:36 AM, thunderclap said: I tried following this guide but on the third bash command "RAILS_ENV=production bin/bundle exec rake mastodon:webpush:generate_vapid_key" it generates an error and no key is generated. Any suggestions? I fixed that by running `export SECRET_KEY_BASE=xxxxxx` and `export OTP_SECRET=xxxxxx` (values from the prior rake secret calls), and then I could call `rake mastodon:webpush:generate_vapid_key` and get valid values. I'm working through the linked process, but trying to use the all-in-one docker image from https://github.com/Wonderfall/docker-mastodon. Note that you still have to run the non-Mastodon services, like Postgres and Redis, separately. 3 Quote Link to comment
Electrohacker Posted January 17, 2022 Share Posted January 17, 2022 If there are people who have this running, why hasnt anyone submitted a working docker to the community applications? Quote Link to comment
JonathanM Posted January 17, 2022 Share Posted January 17, 2022 1 hour ago, Electrohacker said: why hasnt anyone submitted a working docker to the community applications? Why not you? Quote Link to comment
Electrohacker Posted March 31, 2022 Share Posted March 31, 2022 On 1/17/2022 at 2:31 PM, JonathanM said: Why not you? because I dont know how to build a docker, nor can I get an instance of mastodon running Quote Link to comment
emptyfish Posted November 6, 2022 Share Posted November 6, 2022 I just got the wonderfall repository version running in Unraid after a couple of days' trial and error. I am planning to create a CA template for it. It's definitely not an out-of-the-box experience as far as app installs go - there are dependencies involved so it's never going to be for the faint of heart. I've never done CA templates before so stay tuned while I figure that out. 😀 Feel free to ask questions in the meantime if you're trying to work through it. 2 2 1 Quote Link to comment
TimTaylor Posted November 6, 2022 Share Posted November 6, 2022 That would be great 1 Quote Link to comment
ubermetroid Posted November 6, 2022 Share Posted November 6, 2022 Is there a way we can start a bounty for this? Quote Link to comment
pkoasne Posted November 8, 2022 Share Posted November 8, 2022 There is a docker available as of today. I had to add the variables listed here to get smtp to work: https://peterbabic.dev/blog/setting-up-smtp-in-mastodon/ 4 Quote Link to comment
thunderclap Posted November 9, 2022 Share Posted November 9, 2022 On 11/8/2022 at 8:05 AM, pkoasne said: There is a docker available as of today. I had to add the variables listed here to get smtp to work: https://peterbabic.dev/blog/setting-up-smtp-in-mastodon/ Were you able to create an Owner account? I was only able to create an Admin one. Quote Link to comment
pkoasne Posted November 10, 2022 Share Posted November 10, 2022 9 hours ago, thunderclap said: Were you able to create an Owner account? I was only able to create an Admin one. Yeah, the docs are wrong. There is no "owner" role anymore. Sounds like you got it but for anyone else: go to the docker's console and run this: RAILS_ENV=production tootctl accounts modify ACCOUNTNAME --role admin Quote Link to comment
thunderclap Posted November 10, 2022 Share Posted November 10, 2022 4 minutes ago, pkoasne said: Yeah, the docs are wrong. There is no "owner" role anymore. Sounds like you got it but for anyone else: go to the docker's console and run this: RAILS_ENV=production tootctl accounts modify ACCOUNTNAME --role admin That actually didn't work for me. I had to find the 'tootctl' program and then just type 'tootctl accounts modify ACCOUNTNAME --role admin' 1 Quote Link to comment
m1rc0 Posted November 10, 2022 Share Posted November 10, 2022 Now we have this great CA available. See: https://github.com/linuxserver/docker-mastodon/pkgs/container/mastodon I installed it and everything works fine, but I'm unable to get any mails out. Did anyone succeed? 1 Quote Link to comment
thunderclap Posted November 10, 2022 Share Posted November 10, 2022 5 minutes ago, m1rc0 said: Now we have this great CA available. See: https://github.com/linuxserver/docker-mastodon/pkgs/container/mastodon I installed it and everything works fine, but I'm unable to get any mails out. Did anyone succeed? This has been a major issue for me. I use Namecheap for my registrar and the email system for my domain and using their DNS system it points to DuckDNS. The issue is the DNS record using @ causes Gmail to think it's spam. If I remove the @ entry and just use www it works fine, but I can't find simple way to redirect domain.com to www.domain.com without breaking it again. Quote Link to comment
emptyfish Posted November 10, 2022 Share Posted November 10, 2022 (edited) 22 minutes ago, m1rc0 said: Now we have this great CA available. See: https://github.com/linuxserver/docker-mastodon/pkgs/container/mastodon I installed it and everything works fine, but I'm unable to get any mails out. Did anyone succeed? I created an unraid template for the bytemark docker image that will send emails - it's available in the CA store: https://unraid.net/community/apps?q=bytemark#r Once you install just set your mail server in your mastodon config to the smtp container name and match the port to the container port (not host port). You can leave login/password blank in the mastodon config, just the host, port and from address. I've been getting emails without any problems. Fair warning to anyone using the wonderfall container... the latest build is already updated to Mastodon 4.0 which is pre-release. I wish I had waited for linuxserver.io to do their magic. 😀 Edited November 10, 2022 by emptyfish Quote Link to comment
Skitals Posted November 17, 2022 Share Posted November 17, 2022 On 11/10/2022 at 10:00 AM, m1rc0 said: Now we have this great CA available. See: https://github.com/linuxserver/docker-mastodon/pkgs/container/mastodon I installed it and everything works fine, but I'm unable to get any mails out. Did anyone succeed? I had great success with linuxserver's docker. I'm using my personal gmail for my email. smtp.gmail.com port 25. Only gotcha is you can't use your normal password, you need to generate an app password. Use this link to generate one and you are good to go. 1 Quote Link to comment
bencmeyer Posted November 19, 2022 Share Posted November 19, 2022 (edited) Not much support out there, but this is the post with the most replies. Asking for some help. I assume people have gotten this to work. I can't. I ran into a block, thinking mariadb would work. Wrong. Spun up a postgres container, and that got me further. Then I had issues with redis. I had authentication enabled, so had to turn that off in the docker template. That seems to be working, but I can't access the site at all. The logs just keep showing SuspendedUserCleanupScheduler and AccountsStatusesCleanupScheduler jobs. I am using Traefik and Cloudflare. The service is in Traefik, but maybe I need to manually configure it? Edited November 19, 2022 by bencmeyer Quote Link to comment
pkoasne Posted November 30, 2022 Share Posted November 30, 2022 (edited) Max_toot_length is not configurable with official mastodon. Changing max_toot_length manually isn't great because every time the docker updates, your configuration will be wiped. To get around this I created a userscript which I manually run after I update the docker. replace 5000 with whatever length you want to use. #!/bin/bash docker exec mastodon sed -i 's/500/5000/g' /app/www/app/javascript/mastodon/features/compose/components/compose_form.js docker exec mastodon sed -i 's/500/5000/g' /app/www/app/validators/status_length_validator.rb docker exec mastodon sed -i 's/:registrations/:registrations, :max_toot_chars /g' /app/www/app/serializers/rest/instance_serializer.rb docker exec mastodon sed -i 's/private/def max_toot_chars\n 5000\n end\n\n private/g' /app/www/app/serializers/rest/instance_serializer.rb docker exec -w /app/www/app mastodon bundle exec rails assets:precompile && echo "pass" || echo "fail" docker container restart mastodon At some point I'll get tired of manually running the script and will add a precheck to determine if the script should be run or not. Edited November 30, 2022 by pkoasne 1 Quote Link to comment
JoshTheBlack Posted December 7, 2022 Share Posted December 7, 2022 No luck. Got redis and postgresql working fine. Mastodon loads. No errors in the log as far as I can see. When I try to Sign Up the first account, the page just spins for 60 seconds then goes to "We're sorry but something went wrong on our end" page. I can't figure it out. Quote Link to comment
ich777 Posted December 8, 2022 Share Posted December 8, 2022 I still don‘t see the point of running Mastodon on your Unriad server since there are so many instances out there, even the official ones, where you can create an account and have people on there which you can follow instead of starting new and have no people or popular toots to follow, you can even change the server and register your account on a different server of you want too. It‘s totally possible with the offiicial containers but not worth the effort, at least from my perspective. Quote Link to comment
emptyfish Posted December 18, 2022 Share Posted December 18, 2022 On 12/7/2022 at 9:21 PM, ich777 said: I still don‘t see the point of running Mastodon on your Unriad server since there are so many instances out there, even the official ones, where you can create an account and have people on there which you can follow instead of starting new and have no people or popular toots to follow, you can even change the server and register your account on a different server of you want too. It‘s totally possible with the offiicial containers but not worth the effort, at least from my perspective. The instance you choose (or host) has nothing to do with your ability to follow people or content from other servers. The point of Activity Pub/Federation is to have multiple servers that can talk to each other, or choose to be an isolated community if it serves the need. Over the last several weeks every time the big social network does something crazy there's been waves of users setting up new Mastodon accounts. The bigger Mastodon instances are strained under the load - they are all community-driven so run/paid for by volunteers. Under heavier load existing users will also have outages/lag/etc. Small or individual instances are a good way to offset those user spikes - it's how Mastodon and similar networks were designed to work. I think if someone just wants to use mastodon then your point is well-taken, there are many instances out there with established communities that will allow you to get connected. It's also good to point out you can move servers - if you end up not liking your first choice you can always migrate your account without much effort. Quote Link to comment
ich777 Posted December 18, 2022 Share Posted December 18, 2022 1 hour ago, emptyfish said: The point of Activity Pub/Federation is to have multiple servers that can talk to each other, or choose to be an isolated community if it serves the need. Jup, but that also adds computational power, network traffic on your end and not to speak about storage. 1 hour ago, emptyfish said: The bigger Mastodon instances are strained under the load - they are all community-driven so run/paid for by volunteers. Under heavier load existing users will also have outages/lag/etc. Small or individual instances are a good way to offset those user spikes - it's how Mastodon and similar networks were designed to work. But what if a bigger server or even a smaller server decides to shutdown without any warning, where your account is hosted, isn't everything gone or do I understand that not right? 1 hour ago, emptyfish said: It's also good to point out you can move servers - if you end up not liking your first choice you can always migrate your account without much effort. That's true but with such small instances you are always taking the risk of being shutdown or better speaking your account is deleted. From my opinion the maintenance and all that comes with it is not worth for a single small server with maybe one or two users on it. Anyways that's a thing for another topic... Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.