From b6238b05aeec7be2ba8a749da5cfe1072242e078 Mon Sep 17 00:00:00 2001
From: kylethedeveloper <8023096+kylethedeveloper@users.noreply.github.com>
Date: Tue, 21 Feb 2023 22:42:41 -0600
Subject: [PATCH] add docker-compose instructions to docs
---
docs/host-your-own.md | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/docs/host-your-own.md b/docs/host-your-own.md
index e2cf6fe..2be4952 100644
--- a/docs/host-your-own.md
+++ b/docs/host-your-own.md
@@ -41,6 +41,31 @@ Set options by using the following flags in the `docker run` command:
+## Deployment with Docker Compose
+
+Here's an example docker-compose file:
+
+```yaml
+version: "2"
+services:
+ pairdrop:
+ image: lscr.io/linuxserver/pairdrop:latest
+ container_name: pairdrop
+ restart: unless-stopped
+ environment:
+ - PUID=1000 # UID to run the application as
+ - PGID=1000 # GID to run the application as
+ - WS_FALLBACK=false # Set to true to enable websocket fallback if the peer to peer WebRTC connection is not available to the client.
+ - RATE_LIMIT=false # Set to true to limit clients to 100 requests per 5 min.
+ - TZ=Etc/UTC # Time Zone
+ ports:
+ - 3000:3000 # Web UI
+```
+
+Run the compose file with `docker compose up -d`.
+
+
+
## Deployment with Docker with self-built image
### Build the image
```bash