Mention POSTGRES_PASSWORD in the docker install guide.

This commit is contained in:
Valentin Lorentz 2020-06-01 17:46:41 +02:00
parent c489daa37d
commit 91d2c91402
1 changed files with 6 additions and 1 deletions

View File

@ -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: <your password here>
```
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`