Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for running with docker #1090

Closed
wants to merge 1 commit into from

Conversation

XanderStrike
Copy link

@XanderStrike XanderStrike commented Nov 29, 2022

Includes instructions on setting up env, and configuring nginx both on the host and through docker.

Largely copied from here: https://gist.github.com/TrillCyborg/84939cd4013ace9960031b803a0590c4

Includes simpler full-docker instructions for the nginx ingress proxy, as nginx on the host is pretty complicated.

Incorporates a disclaimer from this closed issue: #1035

Closes #770
Closes mastodon/mastodon#21025

Currently not linked to from any other docs as the systemd installation remains the preferred and recommended method.

@XanderStrike XanderStrike force-pushed the add-docker-docs branch 2 times, most recently from 5640cf8 to 26b98bc Compare November 29, 2022 16:51

Now the image can be used to generate a configuration with:

docker-compose run --rm web bundle exec rake mastodon:setup
Copy link

@Lastorder-DC Lastorder-DC Dec 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker compose(docker-compose v2) also works(and supported by default if docker version is >2.0)

Copy link

@Lastorder-DC Lastorder-DC Dec 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, seems like db/redis host of .env.production should have to changed before/while docker-compose run --rm web bundle exec rake mastodon:setup or adding admin account will be interrupted, and you have to reset password to access account(since random set password is not displayed)

Includes instructions on setting up env, and configuring nginx both on the host and through docker.

Largely copied from here: https://gist.github.com/TrillCyborg/84939cd4013ace9960031b803a0590c4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants