From f9e214a1e53ff4897a988979fb001668fc666c84 Mon Sep 17 00:00:00 2001 From: Xstar97TheNoob <9399967+xstar97@users.noreply.github.com> Date: Thu, 23 Feb 2023 12:53:04 -0500 Subject: [PATCH 1/2] docs(ghcr) add deployment notes for ghcr --- docs/host-your-own.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/host-your-own.md b/docs/host-your-own.md index e2cf6fe..2d0e83f 100644 --- a/docs/host-your-own.md +++ b/docs/host-your-own.md @@ -6,6 +6,17 @@ The easiest way to get PairDrop up and running is by using Docker. ```bash docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 lscr.io/linuxserver/pairdrop ``` + +## Deployment with Docker from GHCR + +```bash +docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 ghcr.io/schlagmichdoch/pairdrop:v0.0.1 +``` + +```bash +docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 ghcr.io/schlagmichdoch/pairdrop:latest +``` + > You must use a server proxy to set the X-Forwarded-For to prevent all clients from discovering each other (See [#HTTP-Server](#http-server)). > > To prevent bypassing the proxy and reach the docker container directly, `127.0.0.1` is specified in the run command. From 0ba1bd71133d17646699ab9f2d23c0bc81bdff3c Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Fri, 24 Feb 2023 16:15:29 +0100 Subject: [PATCH 2/2] tidy up Docker deployment notes --- docs/host-your-own.md | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/docs/host-your-own.md b/docs/host-your-own.md index 2d0e83f..aafc06e 100644 --- a/docs/host-your-own.md +++ b/docs/host-your-own.md @@ -1,26 +1,23 @@ # Deployment Notes The easiest way to get PairDrop up and running is by using Docker. -## Deployment with Docker from Docker Hub +## Deployment with Docker +> You must use a server proxy to set the X-Forwarded-For to prevent all clients from discovering each other (See [#HTTP-Server](#http-server)). +> +> To prevent bypassing the proxy and reach the docker container directly, `127.0.0.1` is specified in the run command. + +### Image from Docker Hub ```bash docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 lscr.io/linuxserver/pairdrop ``` -## Deployment with Docker from GHCR +### Image from GHCR ```bash -docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 ghcr.io/schlagmichdoch/pairdrop:v0.0.1 +docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 ghcr.io/schlagmichdoch/pairdrop ``` -```bash -docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 ghcr.io/schlagmichdoch/pairdrop:latest -``` - -> You must use a server proxy to set the X-Forwarded-For to prevent all clients from discovering each other (See [#HTTP-Server](#http-server)). -> -> To prevent bypassing the proxy and reach the docker container directly, `127.0.0.1` is specified in the run command. - ### Options / Flags Set options by using the following flags in the `docker run` command: