aboutsummaryrefslogtreecommitdiffhomepage
path: root/support
diff options
context:
space:
mode:
authorruvilonix <114708614+ruvilonix@users.noreply.github.com>2023-02-12 00:14:14 +0000
committerChocobozzz <chocobozzz@cpy.re>2023-02-13 09:30:51 +0100
commit85ae729151173807114623c1e02c8c763e07cc01 (patch)
treefa0ba1eecba841909af016e24754fc1f3086b2c2 /support
parent6053e6f53c0975d4af5998d611f1dabef8224e41 (diff)
downloadPeerTube-85ae729151173807114623c1e02c8c763e07cc01.tar.gz
PeerTube-85ae729151173807114623c1e02c8c763e07cc01.tar.zst
PeerTube-85ae729151173807114623c1e02c8c763e07cc01.zip
Update docker.md
1. I don't know if you're supposed to do something other than enter `$EDITOR ./docker-compose.yml` into terminal, but when I did that it gave a permission error, so I just used nano. Same with `.env`. 2. Newer versions of Docker Compose use the command `docker compose`, not `docker-compose`. 3. Grepping the password from logs was not working. I looked at the full logs, and I didn't see anything about a password. I added how to set a custom password. Maybe the grepping part should be removed or changed to make it work.
Diffstat (limited to 'support')
-rw-r--r--support/doc/docker.md13
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 38sudo 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 44sudo nano .env
45``` 45```
46 46
47In the downloaded example [.env](https://github.com/Chocobozzz/PeerTube/blob/master/support/docker/production/.env), you must replace: 47In 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
82Run your containers: 84Run 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
90Now 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. 92You can change the automatically created password for user root by running this command from peertube's root directory:
93```shell
94docker-compose exec -u peertube peertube npm run reset-password -- -u root
95```
96
97You 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