diff options
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/docker.md | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/support/doc/docker.md b/support/doc/docker.md index b6990f3e3..6fc443c8e 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md | |||
@@ -35,13 +35,13 @@ View the source of the file you're about to download: [.env](https://github.com/ | |||
35 | #### Tweak the `docker-compose.yml` file there according to your needs | 35 | #### Tweak the `docker-compose.yml` file there according to your needs |
36 | 36 | ||
37 | ```shell | 37 | ```shell |
38 | $EDITOR ./docker-compose.yml | 38 | sudo nano docker-compose.yml |
39 | ``` | 39 | ``` |
40 | 40 | ||
41 | #### Then tweak the `.env` file to change the environment variables settings | 41 | #### Then tweak the `.env` file to change the environment variables settings |
42 | 42 | ||
43 | ```shell | 43 | ```shell |
44 | $EDITOR ./.env | 44 | sudo nano .env |
45 | ``` | 45 | ``` |
46 | 46 | ||
47 | In the downloaded example [.env](https://github.com/Chocobozzz/PeerTube/blob/master/support/docker/production/.env), you must replace: | 47 | In the downloaded example [.env](https://github.com/Chocobozzz/PeerTube/blob/master/support/docker/production/.env), you must replace: |
@@ -79,6 +79,8 @@ A dedicated container in the docker-compose will automatically renew this certif | |||
79 | 79 | ||
80 | #### Test your setup | 80 | #### Test your setup |
81 | 81 | ||
82 | _note_: Newer versions of compose are called with `docker compose` instead of `docker-compose`, so remove the dash in all steps that use this command if you are getting errors. | ||
83 | |||
82 | Run your containers: | 84 | Run your containers: |
83 | 85 | ||
84 | ```shell | 86 | ```shell |
@@ -87,7 +89,12 @@ docker-compose up | |||
87 | 89 | ||
88 | #### Obtaining your automatically-generated admin credentials | 90 | #### Obtaining your automatically-generated admin credentials |
89 | 91 | ||
90 | Now that you've installed your PeerTube instance you'll want to grep your peertube container's logs for the `root` password. You're going to want to run `docker-compose logs peertube | grep -A1 root` to search the log output for your new PeerTube's instance admin credentials which will look something like this. | 92 | You can change the automatically created password for user root by running this command from peertube's root directory: |
93 | ```shell | ||
94 | docker-compose exec -u peertube peertube npm run reset-password -- -u root | ||
95 | ``` | ||
96 | |||
97 | You can also grep your peertube container's logs for the default `root` password. You're going to want to run `docker-compose logs peertube | grep -A1 root` to search the log output for your new PeerTube's instance admin credentials which will look something like this. | ||
91 | 98 | ||
92 | ```bash | 99 | ```bash |
93 | $ docker-compose logs peertube | grep -A1 root | 100 | $ docker-compose logs peertube | grep -A1 root |