X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Fdocker.md;h=78a8d2d32a0ed51650293917ae020d3c41a25729;hb=01cee4e740da72d903442bb550fbfdb1a72d7db4;hp=e3f9b5477cf154d47f01f934472f2618a119101e;hpb=59b741d6e3bd883b0a32d7aa02f953cc1bee16d6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/docker.md b/support/doc/docker.md index e3f9b5477..78a8d2d32 100644 --- a/support/doc/docker.md +++ b/support/doc/docker.md @@ -1,7 +1,11 @@ # Docker guide This guide requires [docker](https://www.docker.com/community-edition) and -[docker-compose](https://docs.docker.com/compose/install/). +[docker-compose V2](https://docs.docker.com/compose/install/). + +```shell +docker compose version # Must be > 2.x.x +``` ## Install @@ -10,7 +14,9 @@ name is definitive after your first PeerTube start. #### Go to your workdir -_note_: the guide that follows assumes an empty workdir, but you can also clone the repository, use the master branch and `cd support/docker/production`. +:::info +The guide that follows assumes an empty workdir, but you can also clone the repository, use the master branch and `cd support/docker/production`. +::: ```shell cd /your/peertube/directory @@ -57,7 +63,8 @@ intuited from usage. #### Webserver -*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.* +::: info +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.::: Install the template that the nginx container will use. The container will generate the configuration by replacing `${WEBSERVER_HOST}` and `${PEERTUBE_HOST}` using your docker compose env file. @@ -97,7 +104,7 @@ docker-compose exec -u peertube peertube npm run reset-password -- -u root 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. ```bash -$ docker-compose logs peertube | grep -A1 root +docker-compose logs peertube | grep -A1 root peertube_1 | [example.com:443] 2019-11-16 04:26:06.082 info: Username: root peertube_1 | [example.com:443] 2019-11-16 04:26:06.083 info: User password: abcdefghijklmnop @@ -110,7 +117,7 @@ peertube_1 | [example.com:443] 2019-11-16 04:26:06.083 info: User password: abc Run `cat ./docker-volume/opendkim/keys/*/*.txt` to display your DKIM DNS TXT Record containing the public key to configure to your domain : ```bash -$ cat ./docker-volume/opendkim/keys/*/*.txt +cat ./docker-volume/opendkim/keys/*/*.txt peertube._domainkey.mydomain.tld. IN TXT ( "v=DKIM1; h=sha256; k=rsa; " "p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Dx7wLGPFVaxVQ4TGym/eF89aQ8oMxS9v5BCc26Hij91t2Ci8Fl12DHNVqZoIPGm+9tTIoDVDFEFrlPhMOZl8i4jU9pcFjjaIISaV2+qTa8uV1j3MyByogG8pu4o5Ill7zaySYFsYB++cHJ9pjbFSC42dddCYMfuVgrBsLNrvEi3dLDMjJF5l92Uu8YeswFe26PuHX3Avr261n" @@ -127,25 +134,27 @@ See the production guide ["What now" section](https://docs.joinpeertube.org/inst ## Upgrade -**Check the changelog (in particular the *IMPORTANT NOTES* section):** https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md +::: warning +Check the changelog (in particular the *IMPORTANT NOTES* section):** https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md +::: Pull the latest images: ```shell -$ cd /your/peertube/directory -$ docker-compose pull +cd /your/peertube/directory +docker-compose pull ``` Stop, delete the containers and internal volumes (to invalidate static client files shared by `peertube` and `webserver` containers): ```shell -$ docker-compose down -v +docker-compose down -v ``` Rerun PeerTube: ```shell -$ docker-compose up -d +docker-compose up -d ``` ## Build @@ -153,9 +162,9 @@ $ docker-compose up -d ### Production ```shell -$ git clone https://github.com/chocobozzz/PeerTube /tmp/peertube -$ cd /tmp/peertube -$ docker build . -f ./support/docker/production/Dockerfile.bullseye +git clone https://github.com/chocobozzz/PeerTube /tmp/peertube +cd /tmp/peertube +docker build . -f ./support/docker/production/Dockerfile.bullseye ``` ### Development