Created
July 23, 2023 19:40
-
-
Save e-dreyer/a82c33deef469bf9aa9042b9f698b0ab to your computer and use it in GitHub Desktop.
Mastodon Docker file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the official Mastodon image as the base image | |
FROM tootsuite/mastodon | |
# Set the environment variables for Mastodon | |
ENV RAILS_ENV=production | |
ENV NODE_ENV=production | |
# Optionally, you may want to modify the database configuration here | |
# Expose the ports used by Mastodon | |
EXPOSE 3000 4000 | |
# Start the Mastodon process | |
CMD ["rails", "s", "-b", "0.0.0.0"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment