Skip to content

Add documentation for running with docker#1090

Closed
XanderStrike wants to merge 1 commit into
mastodon:masterfrom
XanderStrike:add-docker-docs
Closed

Add documentation for running with docker#1090
XanderStrike wants to merge 1 commit into
mastodon:masterfrom
XanderStrike:add-docker-docs

Conversation

@XanderStrike
Copy link
Copy Markdown

@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.

Comment thread content/en/admin/docker.md Outdated
Comment thread content/en/admin/docker.md Outdated
Comment thread content/en/admin/docker.md Outdated

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

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

@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
Copy Markdown

@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

Development

Successfully merging this pull request may close these issues.

docker-compose undocumented, not working due to redis errors Documentation on using the provided docker image

2 participants