diff --git a/content/en/admin/docker.md b/content/en/admin/docker.md index d036bf34..a8164afa 100644 --- a/content/en/admin/docker.md +++ b/content/en/admin/docker.md @@ -44,7 +44,12 @@ To use the prebuilt images: 1. Open `docker-compose.yml` in your favorite text editor. 1. Comment out the `build: .` lines for all images (web, streaming, sidekiq). 2. Edit the `image: tootsuite/mastodon` lines for all images to include the release you want. The default is `latest` which is the most recent stable version, however it recommended to explicitly pin a version: If you wanted to use v2.2.0 for example, you would edit the lines to say: `image: tootsuite/mastodon:v2.2.0` - 3. Save the file and exit the text editor. + 3. Set a database password on the line with `POSTGRES_PASSWORD`. if it doesn't exist, add these two lines after `image: postgres:9.6-alpine`: + ``` + environment: + POSTGRES_PASSWORD: + ``` + 4. Save the file and exit the text editor. 2. Run `cp .env.production.sample .env.production` to bootstrap the configuration. You will need to edit this file later. 3. Run `docker-compose build`. It will now pull the correct image from Docker Hub. 4. Set correct file-owner with `chown -R 991:991 public`