diff options
Diffstat (limited to 'support/doc/docker.md')
-rw-r--r-- | support/doc/docker.md | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/support/doc/docker.md b/support/doc/docker.md index 78a8d2d32..066451067 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md | |||
@@ -64,7 +64,8 @@ intuited from usage. | |||
64 | #### Webserver | 64 | #### Webserver |
65 | 65 | ||
66 | ::: info | 66 | ::: info |
67 | The docker compose file includes a configured web server. You can skip this part and comment the appropriate section in the docker compose if you use another webserver/proxy.::: | 67 | The docker compose file includes a configured web server. You can skip this part and comment the appropriate section in the docker compose if you use another webserver/proxy. |
68 | ::: | ||
68 | 69 | ||
69 | Install the template that the nginx container will use. | 70 | Install the template that the nginx container will use. |
70 | The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file. | 71 | The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file. |
@@ -91,20 +92,20 @@ _note_: Newer versions of compose are called with `docker compose` instead of `d | |||
91 | Run your containers: | 92 | Run your containers: |
92 | 93 | ||
93 | ```shell | 94 | ```shell |
94 | docker-compose up | 95 | docker compose up |
95 | ``` | 96 | ``` |
96 | 97 | ||
97 | #### Obtaining your automatically-generated admin credentials | 98 | #### Obtaining your automatically-generated admin credentials |
98 | 99 | ||
99 | You can change the automatically created password for user root by running this command from peertube's root directory: | 100 | You can change the automatically created password for user root by running this command from peertube's root directory: |
100 | ```shell | 101 | ```shell |
101 | docker-compose exec -u peertube peertube npm run reset-password -- -u root | 102 | docker compose exec -u peertube peertube npm run reset-password -- -u root |
102 | ``` | 103 | ``` |
103 | 104 | ||
104 | 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. | 105 | 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. |
105 | 106 | ||
106 | ```bash | 107 | ```bash |
107 | docker-compose logs peertube | grep -A1 root | 108 | docker compose logs peertube | grep -A1 root |
108 | 109 | ||
109 | peertube_1 | [example.com:443] 2019-11-16 04:26:06.082 info: Username: root | 110 | peertube_1 | [example.com:443] 2019-11-16 04:26:06.082 info: Username: root |
110 | peertube_1 | [example.com:443] 2019-11-16 04:26:06.083 info: User password: abcdefghijklmnop | 111 | peertube_1 | [example.com:443] 2019-11-16 04:26:06.083 info: User password: abcdefghijklmnop |
@@ -142,19 +143,19 @@ Pull the latest images: | |||
142 | 143 | ||
143 | ```shell | 144 | ```shell |
144 | cd /your/peertube/directory | 145 | cd /your/peertube/directory |
145 | docker-compose pull | 146 | docker compose pull |
146 | ``` | 147 | ``` |
147 | 148 | ||
148 | Stop, delete the containers and internal volumes (to invalidate static client files shared by `peertube` and `webserver` containers): | 149 | Stop, delete the containers and internal volumes (to invalidate static client files shared by `peertube` and `webserver` containers): |
149 | 150 | ||
150 | ```shell | 151 | ```shell |
151 | docker-compose down -v | 152 | docker compose down -v |
152 | ``` | 153 | ``` |
153 | 154 | ||
154 | Rerun PeerTube: | 155 | Rerun PeerTube: |
155 | 156 | ||
156 | ```shell | 157 | ```shell |
157 | docker-compose up -d | 158 | docker compose up -d |
158 | ``` | 159 | ``` |
159 | 160 | ||
160 | ## Build | 161 | ## Build |